Run code when the 3D scene is ready
-
For every 3D project, before we can run any 3D block, we have to initialize the 3D scene.
For example, if we try to run these blocks to add a box at the beginning of the program, the box will not be added successfully, because when the “add box” block runs, the scene has not been completely initialized.

To run any code after the 3D scene has completed initialization, you can attach them to this block:

For example, this is the revised program that adds a box right after the scene has been initialized:
Note that you can also use this block in other sprites, and it will always wait until the 3D scene is ready. -
I CreatiCode pinned this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login