tutorials/scripting/nodes_and_scene_instances #92
Replies: 5 comments 2 replies
-
|
Note that all nodes will only be available at runtime, therefore, if you set a variable to a node with a node path, it must have the |
Beta Was this translation helpful? Give feedback.
-
|
Worth noting the order in which nodes get loaded and call their |
Beta Was this translation helpful? Give feedback.
-
|
I had an issue where i could move but not rotate an instanced scene from code. So always add the instance to the tree before doing anything else with it i guess. |
Beta Was this translation helpful? Give feedback.
-
|
Question: Is it possible to manipulate an instantiated object from the script it was created from? I would like to do this to cause instantiated objects to spawn in front of the player |
Beta Was this translation helpful? Give feedback.
-
|
What is the difference between doing the .load("path") and doing @export var example_scene: PackedScene and then populating the scene in the Inspector panel by dragging the appropriate .tscn file on to it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
tutorials/scripting/nodes_and_scene_instances
This guide explains how to get nodes, create nodes, add them as a child, and instantiate scenes from code. Getting nodes: You can get a reference to a node by calling the Node.get_node() method. Fo...
https://docs.godotengine.org/en/stable/tutorials/scripting/nodes_and_scene_instances.html
Beta Was this translation helpful? Give feedback.
All reactions