在三维场景创建完毕时运行代码
-
对于每个三维项目,在运行任何三维积木之前,我们必须初始化三维场景。
例如,如果我们尝试在程序开始时运行这些积木来添加一个盒子,该盒子将不会添加成功,因为当“添加盒子”积木运行时,场景还没有完全初始化。

要在三维场景完成初始化后再运行某些代码,你可以将它们附加到这个积木下面:

例如,这是在场景初始化后立即添加一个盒子的程序:

注意,你也可以把这个积木用于不同的角色中,它都会等待场景创建结束再启动。 -
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