#How can i set to false or true the "Simulate" tag on Physics Entities.

1 messages · Page 1 of 1 (latest)

void terrace
#

I want the Simulate to true or false from script at runtime. Does anyone know how to do it?
I'm trying to do it from a Monobehaviour. I can get Entities with a Simulate tag attached but I can't find a way to change it's value. Thanks for your time!

void terrace
#

Took me a while but I found the solution. For anyone seeing this in the future, here it is:

#

entityManager.SetComponentEnabled(entity, ComponentType.ReadWrite<DesiredComponent>(), false);

pliant goblet
#

There's also APIs to toggle enableable components on ComponentLookup and ArchetypeChunk, so they can be safely enabled or disabled from job code.