sschmid / Entitas

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

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

Open Ecstasyzzz opened 1 year ago

Ecstasyzzz commented 1 year 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 3 months 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.