godotengine / godotengine/godot-vscode-plugin

Editing Values for Vectors and Colors in the Inspector doesn't work

Open
#383 0 comments 0 reactions 0 assignees View on GitHub
bug debugger
Dominant language
TypeScript
Stars
2.1k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

### Godot version

3.4.4

### VS Code version

1.68.0

### Godot Tools VS Code extension version

1.3.1

### System information

Windows 10

### Issue description

I have a simple project where the godot icon bounces back and forth. I'm editing some of the values using the extension's Inspector, single value variables seem to work but not things like Vectors or Colors.

![gd_inspector](https://user-images.githubusercontent.com/30502195/174099936-ec5f6849-971f-4afa-a20d-b39e4ed90e52.gif)

I have a world.gd script that looks like the following.

```
extends Node2D

var cycle: int = 1
var sprite = Sprite.new()
var direction: int = 1

func _ready():
print("Ready!")
sprite.texture = load("res://icon.png")
sprite.position.x = 100
sprite.position.y = 200
add_child(sprite)

func _process(delta):
sprite.position.x += 500 * direction * delta
if sprite.position.x >= 640:
direction = -1
if (sprite.position.x <= 0):
direction = 1

print(cycle)
cycle += 1
```

### Steps to reproduce

Attempt to edit values in the extensions Inspector.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.