The full error:
0:00:04:0248 - Node './Crosshairs' was modified from inside an instance, but it has vanished.
Type:Warning
Description:
Time: 0:00:04:0248
C Error: Node './Crosshairs' was modified from inside an instance, but it has vanished.
C Source: scene/resources/packed_scene.cpp:149
C Function: instance
I have a weapon class that contains an exported packed scene Crosshairs.
extends Node2D
export(PackedScene) var crosshairs
var _crosshairs
func _ready():
_crosshairs = crosshairs.instance()
In another class, when this weapon class is instantiated, I get the warning.
extends Panel
export(PackedScene) var weapon
var _weapon
func _ready():
if weapon == null:
return
_weapon = weapon.instance()
The error happens on the line _weapon = weapon.instance()
So what does this error mean? Should I be concerned? (I hate errors.) How can I fix it?