DeactivatedEntities in scene not found with entity.findEntity(named:)?

I have a rkasset package, from which I load my scene.

In the scene, I'm using entity.findEntity(named:"..") to find entities to activate/deactivate.

When I have entities deactivated in the *.usda, they are not found with this method. Further inspection shows that the deactivated entities seem not to be compiled into the build.

Is there anything I can set that prevents skipping the build for these deactivated entities?

Hello @Kabe

No, there is nothing you can do to include deactivated entities in your scene.

Depending on the use case, one solution is to add an opacity component to the entity and set it to zero in the editor. This effectively hides it in the editor but would let you show it at runtime.

Please consider filing an enhancement request using feedback assistant if you'd like us to consider adding support to hide an entity in Reality Composer Pro without deleting it from the scene.

DeactivatedEntities in scene not found with entity.findEntity(named:)?
 
 
Q