Factory created object is rendered on next frame?


I use factory object to create visible walls in fov of player. When player rotated fast, i can see delay before wall appeared. Looks like wall rendered on next frame after creation.
I create walls in update function
So factory created go rendered on next frame?

In docs there are nothing about draw:

If the game object is created inside of the frame (e.g. from an update callback), the game object will be created instantly, but none of its component will be updated in the same frame.
1 Like


Do you set parent?



no, only factory.create



Change update to post_update(on_message). Now all worked as i need.
Not sure why it happened or why fixed. :mage: