I've created a script on the wrong node, how can I move it properly?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robster
:warning: Old Version Published before Godot 3 was released.

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
:bust_in_silhouette: Reply From: bruteforce

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!

So simple. Thank you very much.

Robster | 2017-02-02 13:10