How to attach an existing script to a node?

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

Also, can I attach one script to different nodes?

When I click the “Edit/Create the Node script” button, it only allows me to create a script, rather than choose a current script.

:bust_in_silhouette: Reply From: genete

At the end of Inspector tab there is always a member called “Script” inherited from Node class. just clic on it and change it using “Load” from the pop up menu.

Thanks genete. But I think it should make much more sense if this could be implemented in the “Edit/Create” script button. I’ll put an entry in github.

azurvii | 2016-05-13 09:33

this is so helpful thanks!

bonsaipropaganda | 2023-04-21 15:58