I understand I can access raised trigger events by using this.
var triggerEvents = SystemAPI.GetSingleton<SimulationSingleton>().AsSimulation().TriggerEvents;
foreach (TriggerEvent te in triggerEvents)
{
//...
}
My question is:
Do I need to keep track of the entities to recognize which ones are not triggering anymore? or is it a better performant way of doing same behavior like OnTriggerExit
does?
Thanks in advance!