0 votes

With Mono/C# I tried to create a PoolVector2Array with:

var point = new PoolVector2Array();

I get an error:

The type of namespace name 'PoolVector2Array' cannot be found (are you missing a using directive or an assembly reference?)

How can I fix this?

asked May 17 in Engine by imekon (197 points)

This may not be your issue, but the line should be the following:

PoolVector2Array point = new PoolVector2Array();

1 Answer

0 votes

It's Vector2[]

or if its List

then it's

list.ToArray()

answered May 26 by imekon (197 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.