Factory created object is rendered on next frame?

#1

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

#2

Do you set parent?

0 Likes

#3

no, only factory.create

0 Likes

#4

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

0 Likes