Is there a way to tell a graph or the scan function to limit its scan to a single scene? I have multiple scenes in my game (which are mutually exclusive) and RecastGraph.Scan() is referencing game objects in the other scenes.
A CollectionSettings.Scene? property may work as an effective filter. The existing CollectionSettings.PhysicsScene? property may be shared across scenes.
I used to have two separate physics scenes – one for planetside gameplay and one for stellar gameplay. But by sharing a single physics scene and using layers to separate physics interactions, I gain approximately 0.7 MS CPU time per frame, which is significant.
But now A*Pathfinding is accessing colliders in other scenes which share similar tags.
Thanks,
Shaun