![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | blacknoize404 |
When I start the class “resource_queue.gd” following the example steps in the documentation it gives me errors when I try to use the method queue.queue_resource()
.
The error is caused in the part:
func queue_resource(path, p_in_front = false):
_lock("queue_resource")
if path in pending:
_unlock("queue_resource")
return
elif ResourceLoader.has_cached(path):
var res = ResourceLoader.load(path)
pending[path] = res
_unlock("queue_resource")
return
else:
var res = ResourceLoader.load_interactive(path)
#Exactly here: res.set_meta("path", path)
With the message:
Attempt to call function ‘set_meta’ in base ‘null instance’ on a null instance.
Could anyone help me with this situation? I assumed fully functional examples would come in the documentation. But since this does not work, I ask this question.