#Bad address index in tool mode

1 messages · Page 1 of 1 (latest)

sullen wave
#

So I have a script called ball.gd which just says

extends Palletable

var pos: Vector2i```

It works without errors if I run the game normally.

However, I have a @tool script that extends it that has even less code in it
```@tool
class_name BallEdit
extends Ball```

When I create a BallEdit node, I get an error saying `  ERROR: res://board/ball/ball.gd:4 - Bad address index.`

What is wrong with the pos variable and why does it only complain in tool mode?
sullen wave
#

Oddly, the error fixed itself when I removed the ": Vector2i" I guess I'm not allowed to strongly type the variable???