Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot assign elements to an exported Array of Nodes #77084

Closed
saltern opened this issue May 15, 2023 · 2 comments
Closed

Cannot assign elements to an exported Array of Nodes #77084

saltern opened this issue May 15, 2023 · 2 comments

Comments

@saltern
Copy link

saltern commented May 15, 2023

Godot version

v4.0.3.rc2.mono.official [2ac4e3b]

System information

Windows 10 22H2

Issue description

When exporting a variable where the type is any kind of node, a box saying "Assign..." appears and you can specify a node via the editor no problem. When the exported variable is an array of nodes, the same box appears for each element in the array, but attempting to assign a node in the same way does nothing.

Steps to reproduce

  • Create a node, attach a script to it, and in it create an export variable with type Array[Node].
  • From the inspector, add a new element to the array.
  • Click "Assign..." to bring up the "Select a Node" window.
  • Choose any node.
  • The node doesn't get assigned and the array remains unchanged.

Minimal reproduction project

Node array export.zip

@Calinou
Copy link
Member

Calinou commented May 15, 2023

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2023
@VikingAntics
Copy link

This bug is fixed in 4.1 dev3, however, if you add @tool to the script, it reverts to the previous bugged behavior and will not assign the selected node. It does 'flash' the change for an instant, but then reverts back to the original value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants