#System initialization
1 messages · Page 1 of 1 (latest)
Use entity query to start or stop your systems. Or you can use state.RequireForUpdate<SomeComponent>(). The idea is your system will update only if there is at least 1 entity with SomeComponent exists. If there is none, the system won't ever update. You have to specify this in OnCreate method.