Poolvector2array not found in base self

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

On declaring a Poolvector2array in Gdscript(Godot 4) , the compiler gives the following error:

Poolvector2array not found in base self

CODE:

extends Node
#var arrayPloy = PoolVector2Array() #Try1




func _ready():
#var arrayPloy = [PoolVector2Array()]  #Try2
#var poly = arrayPloy[0]
	pass



func _process(_delta):
  var arrayPloy =PoolVector2Array([Vector2(0, 0)])  #Try3
	
		
:bust_in_silhouette: Reply From: Ninfur

I think you are looking for

var arrayPloy = PackedVector2Array()