Set Active/Deactive Entity during runtime in Niantic Studio

Hi everyone,
How can I set active/deactive for a specific entity in Niantic Studio, similar to the gameObject.SetActive(true/false) function in Unity?

Hi!

Currently it’s not possible to toggle objects during runtime.

We have ecs.Hidden.reset but it won’t prevent the components on the object from Ticking.

2 Likes

I think using SetScale to hide it is a temporary solution but it does not guarantee optimal performance
For example:
world.setScale(schemaAttribute.cursor(eid).oceanEarthEntity, 0.00001, 0.00001, 0.00001)
Thanks for your help :hugs:

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.