sschmid / Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
MIT License
7.11k stars 1.11k forks source link

How to get all group in some context, without reflection。 #1082

Open Ecstasyzzz opened 10 months ago

Ecstasyzzz commented 10 months ago

How to get all group in some context ? i just want make sue to clear all group and call group.RemoveAllEventHandlers. for now, can only use reflection ?

Ants-Aare commented 1 month ago

Hey, thanks for asking the question. As of now this is not possible to do easily. But may I ask why you would want to do that? The list of groups is intentionally hidden and can only be changed from inside the context so that it can't be tampered with from the outside.