Encountered a weird problem in Godot. Consider the following code:
lookup, even though it successfully finds the right VoiceBank resource, fails with the error Trying to return value of type "Resource" from a function which the return type is "VoiceBank".
However, delaying the load until later works:
I’m not really sure why this is, but I’m guessing it has something to do with how Godot treats const values.