godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.61k stars 21.28k forks source link

Can't assign root node in VisualScript NodePaths #28189

Closed Jummit closed 1 year ago

Jummit commented 5 years ago

Godot version: v3.2 4ad255a Downloaded from Hugos website.

Issue description: When assigning the root node to a NodePath in a VisualScript Get Scene Node node, it gets set to the node with the script attached.

Steps to reproduce: Make a new scene with a root and a node with a vs script attached and add a Get Scene Node. Try setting it to the root node.

KoBeWi commented 4 years ago

Still valid in 65730ab

archerallstars commented 3 years ago

This is still valid in Godot 3.2.4 beta 5 as shown in the screen recording below:

https://user-images.githubusercontent.com/1403194/104142120-d9d9dc00-5398-11eb-9ded-c345beef7439.mp4

Currently, the only way to get the root node in Visual Script is via _getnode() as shown in the screen recording below:

https://user-images.githubusercontent.com/1403194/104142203-4523ae00-5399-11eb-9194-4ee1f873311b.mp4

However, this bug makes it impossible to get the root node property out of 1 Visual Script node. Moreover, the property input box in the Object.get() node is based on string input, instead of a more intuitive selectable properties list presented in the property box accessible in the inspector tab if the Get Scene Node works as intended.

Screenshot 2021-01-10 231454

https://user-images.githubusercontent.com/1403194/104142590-fd9e2180-539a-11eb-9b40-d8d509d5e23f.mp4

Gallilus commented 3 years ago

Did not know about that but try https://godotengine.org/asset-library/asset/922 then you are able to edit the path as string

Jummit commented 1 year ago

Closing as VisualScript isn't part of Godot anymore.