Given,
if ResourceLoader.exists(path):
var packed_scene : PackedScene = load(path)
How would we find the uid?
Given,
if ResourceLoader.exists(path):
var packed_scene : PackedScene = load(path)
How would we find the uid?
What do you mean UID?
It’s a property that all resources have. We can load resources by path or by uid.
I’m making an editor tool and would like to save uids in order to update path locations, in case the user moves around resources.
Also, I found the answer!
ResourceLoader.get_resource_uid(path)
I simply did not see this method.
Reference,
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.