Spawn Actor from const UClass * reference
Hi, im trying to spawn an actor from c++.
I've used a SClassPropertyEntryBox in a module to let the user select a Blueprrint they want to spawn. The code looks like this:
The delegate OnSetClass provides a const UClass reference to the selected class in the PropertyEntryBox. This is a problem since the function World()-SpawnActor does not accept a const UClass , but rather a non const.
Are there any solutions to this that is not an "ugly" solution?
Follow this question
Once you sign in you will be able to subscribe for any updates here