How to declare array of nodes in C#

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ondesic

I want to create an array of Control nodes. How do I declare and initialize this in C#. I have tried a few things but can’t seem to get the right syntax.

:bust_in_silhouette: Reply From: ondesic

It looks like this works:
Godot.Collections.Array<Control> cons = new Godot.Collections.Array<Control>();

if there is a better way, please let me know.