class SceneObjectSystem : SystemBase
systemManager.findSystem<SceneObjectSystem>().getSceneObject(myEntity)?.thenAccept { so -> so.addInputListener(myInputListener) }
| Name | Summary |
|---|---|
SceneObjectSystem | constructor() |
| Name | Summary |
|---|---|
systemManager |
| Name | Summary |
|---|---|
addSceneObject | fun addSceneObject(entity: Entity, sceneObjectFuture: CompletableFuture<SceneObject>) Adds a SceneObject future to the registry to allow other systems to get the SceneObject associated with the entity. The future is expected to be completed by the caller once the SceneObject is done loading. |
associateSystemManager | fun associateSystemManager(systemManager: SystemManager) Associates this system with a system manager, used in the Spatial SDK. |
delete | open override fun delete(entity: Entity) System should do any housekeeping based on entity being removed from the scene |
destroy | open fun destroy() System should clean up any and all resources for shutdown |
equals | open operator override fun equals(other: Any?): Boolean Checks if this system is equal to another object. |
execute | open override fun execute() System should perform all the operations based on relevant entities. |
getDependencies | |
getScene | |
getSceneObject | fun getSceneObject(entity: Entity): CompletableFuture<SceneObject>? Returns a future for the SceneObject associated with the entity. A null return represents no load has started for this Entity. |
hashCode | open override fun hashCode(): Int Returns the hash code of this system. |
removeSceneObject |