extends TileMap
var GridSize = 30 ;
var GridData = {}
# Called when the node enters the scene tree for the first time.
func _ready():
for x in GridSize:
for y in GridSize:
set_cell(0, Vector2i(x,y), 0, Vector2i(0,0), 0)
print(str(Vector2(x,y)))
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
It seems that Vector2i is not detected in vscode. But Vector2 is detected.
Steps to reproduce
Install the extension
Put this code in the code
extends TileMap
var GridSize = 30 ;
var GridData = {}
# Called when the node enters the scene tree for the first time.
func _ready():
for x in GridSize:
for y in GridSize:
set_cell(0, Vector2i(x,y), 0, Vector2i(0,0), 0)
print(str(Vector2(x,y)))
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
Godot version
4.1.1
VS Code version
1.82.3
Godot Tools VS Code extension version
1.3.1
System information
Mac OS
Issue description
I was playing around with tilemap
It seems that
Vector2i
is not detected in vscode. ButVector2
is detected.Steps to reproduce
Put this code in the code
See the red underline below
Vector2i