Hazel icon indicating copy to clipboard operation
Hazel copied to clipboard

OnCreate() need invoke after all the ScriptEntities added into "s_Data->EntityInstances"

Open WhereIsMyID opened this issue 2 years ago • 0 comments

When i want get an entity by "FindEntityByName()" in "OnCreate()" function, there will be a promblem that it would miss the instance from the function: "void ScriptEngine::OnCreateEntity(Entity entity)", because the "InvokeOnCreate()" will excute during every loop, so i think the invoke function need another way to do.

WhereIsMyID avatar Jan 11 '23 06:01 WhereIsMyID