The GameObjectDirectory class in the Sandbox namespace is responsible for managing the registration and unregistration of GameObjects and Components within a scene. It ensures the uniqueness of IDs and provides efficient lookup capabilities by ID.
The GameObjectDirectory class in the Sandbox namespace is responsible for managing the registration and unregistration of GameObjects and Components within a scene. It ensures the uniqueness of IDs and provides efficient lookup capabilities by ID.
Member Name | Summary |
---|---|
FindComponentByGuid | Find a Component in the scene by Guid. This should be really really fast. |
FindByGuid | Find a GameObject in the scene by Guid. This should be really really fast. |
FindByName | Find objects with this name. Not performant. |
Count | Gets the total count of registered GameObjects and Components. |
GameObjectCount | Gets the count of registered GameObjects. |
ComponentCount | Gets the count of registered Components. |