Godot.Collections.Array<ref Node> objectNodeReferences;
This is not valid syntax for C# to store references of a given node in an array for example. Is there any valid syntax for achieving this?
Godot.Collections.Array<ref Node> objectNodeReferences;
This is not valid syntax for C# to store references of a given node in an array for example. Is there any valid syntax for achieving this?
Divers Drop the ref
Godot.Collections.Array<Node> objectNodeReferences;
It's not going to attempt to store a copy of the entire object? I can never remember these things, but I guess ref and out are more suitable for specific and smaller pieces of data which you would like to tune directly, like a Vector type variable for example.
Divers It will store references to type specified by generic parameter.
© 2022 - 2024 — McMap. All rights reserved.