godot
godot copied to clipboard
Cannot use relative path to create a scene
.
├── dir
│ ├── main.gd
│ └── main.xml
└── engine.cfg
# main.gd
extends Node
func _ready():
print(load("main.xml"))
print(load("res://dir/main.xml"))
output: [Object:null] [PackedScene:505]
Correct me if I'm wrong, but isn't that the right behavior?
it works with preload(), but not with load()
On Tue, Jan 20, 2015 at 10:54 PM, Roman Nekrassow [email protected] wrote:
Correct me if I'm wrong, but isn't that the right behavior?
— Reply to this email directly or view it on GitHub https://github.com/okamstudio/godot/issues/1265#issuecomment-70771396.
IIUC this is by design, so closing.