0 votes

I have a scene I want to customize its properties, but I need to do this by code. It because I want to instance like this:

var i = myLoadedScene.instance()
add_child(i)
// now I want to customize the instance individual properties
in Engine by (663 points)

With customize you mean change its values or create new properties?

You already provided the answer:

var i = myLoadedScene.instance()
i.name = "bob" #See i is the object before you add it to the tree
#You can just change it's values here
add_child(i)
// now I want to customize the instance individual properties

I realized it when I was working on my project. Thank you.

1 Answer

0 votes
Best answer
var i = myLoadedScene.instance()
i.name = "bob" #See i is the object before you add it to the tree
#You can just change it's values here
add_child(i)
// now I want to customize the instance individual properties
by (663 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.