Godot Version
4.3
Question
var filepath = get_parent().filename is not working
Not all nodes have a filename property.
Try testing it with something like this:
var node = get_parent()
if node.has_method("get_filename"):
# do some print message her
else:
# do some other message here
You are probably looking for scene_file_path
Thanks
thanks
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.