A bit of context - We are building a top-down game in which agents navigate inside the rooms of spaceships. There can be multiple ships on screen at once, and ships also move during gameplay (we have been using LocalSpaceGraph and LocalSpaceRichAI so bots can navigate on moving ships). The ships are regularly destroyed/spawned during play, so we have been saving a pre-defined graph as a .bytes file then loading the relevant graph when a ship is spawned (we’d like to avoid the performance hit of generating the graphs during run-time if possible).
The question - It seems loading a graph from file doesn’t contain a reference to the object on which the graph was generated, so LocalSpaceRichAI agents on a loaded graph don’t adapt to the movement of their parent object (the ship). Would anyone know how to save then load a LocalSpaceGraph from a file, so it can be applied to a moving object?
(If there is a better way of approaching this given the context above we’d also be very open to ideas!)
Thanks very much for the help!