Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cloa513 |
E 0:00:00.660 load_interactive: Cannot open file ‘res://scenes/tile.tscn’.
<C++ Error> Condition “err != OK” is true. Returned: Ref()
<C++ Source> scene/resources/resource_format_text.cpp:1232 @ load_interactive()
Main Scene.gd:3 @ _init()
E 0:00:00.663 _load: Failed loading resource: res://scenes/tile.tscn. Make sure resources have been imported by opening the project in the editor at least once.
<C++ Error> Condition “found” is true. Returned: RES()
<C++ Source> core/io/resource_loader.cpp:282 @ _load()
Main Scene.gd:3 @ _init()
Somehow it run once after loading files into inspector but now also throws this error in debugger stack frames gd 4 at function:_init
extends Node2D
var scene = load(“res://scenes/tile.tscn”)
var scene_instance = scene.instance()
func scenadd():
add_child(scene_instance)
Declare member variables here. Examples:
var a = 2
var b = “text”
Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
Called every frame. ‘delta’ is the elapsed time since the previous frame.
#func _process(delta):
pass
Please post the full debugger message, you haven’t given us really anything to go off of to help you.
timothybrentwood | 2021-11-02 13:40