0 votes

Hi all,

I have a setup like this:

RootNode
--ChildA (script)
----Child1
----Child2
--ChildB
----Child1
----Child2
etc

I've gone and attached a script to ChildA and I need to move it to RootNode. How can I go about doing this so it looks like below? Thanks a tonne...

RootNode (script)
--ChildA 
----Child1
----Child2
--ChildB
----Child1
----Child2
etc
asked Feb 2, 2017 in Engine by Robster (808 points)

1 Answer

+4 votes
Best answer

You can change (load/clear/edit... etc.) the script of the selected node at the bottom of the inspector tab.
enter image description here
1.) Select ChildA, and clear it's "script" property!
2.) Select RootNode and load the script!

answered Feb 2, 2017 by bruteforce (648 points)
selected Feb 2, 2017 by Robster

So simple. Thank you very much.

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.