+1 vote

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
in Engine by (825 points)

1 Answer

+6 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!

by (674 points)
selected by

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 Frequently asked questions and 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.