Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | kl–k |
I instanced a node through code and want to also give it a script through code how would i go about doing this?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | kl–k |
I instanced a node through code and want to also give it a script through code how would i go about doing this?
Reply From: | moredear |
my_node = my_node_packedscene.instance()
my_node.set_script(load("res://my_script.gd"))
maybe this would help
Would you have a C# version of that?
kl–k | 2023-01-29 19:21