Does it really have to be an actor? Is there no other way?
I’ve come across this post but the method that I tried here doesnt work, I havent tried constructing the object like the second method mentioned here yet.
Yeah that’s possible, you can create blueprint_implementable functions in your class and expose all the member variables to blueprints, but it might be more work than it’s worth, depending on what you’re trying to accomplish.
I do this. I just declare it (my custom class) as an instance variable as part of my AActor derived class and I don’t have the compile issues. However it is problematic if the actor gets re-used or serialised from some reason.