Function: useEntityInScene()
useEntityInScene(scene
, entity
?): void
A hook that "on mount" adds the entity to the scene, and "on unmount" removes it.
Parameters
• scene: Scene
• entity?: Entity
Returns
void
Defined in
src/hooks/useEntityInScene.ts:7