Ok, i’ve been trying to get it working for quite a while and it seems to be working now…
Basically, when i try to initialize the object on the class constructor, it won’t work.
Doing it on BeginPlay seems to do the job so far. No errors on both StandaloneGame or PlayInEditor.
What’s weird is that i’ve tried it before, but i guess the game didn’t get the reload after compile, which happens sometimes, and i didn’t notice it.
If someone could explain why it has to be done like that, or if there’s a right way to do it on the constructor, that’d be nice.