USING BLUEPRINTS
How do I access the default values of variables in an actor class without actually spawning the actor in the world?
Lets say I have some actor which causes some cost in game currency to spawn, I want to show a message to player if he can spawn it or not depending on how much game currency he has during the match, and for this I’ll need to get the cost of the unit which will be stored in the actor class’s variable.
I understand spawning the actor is equivalent to instantiating an object of class in C++ but then I will need to clean up the spawned actor after using its value and any begin play things would run causing problems.
So I want to get the variable value of the class without spawning it.
In UE3 unreal script you could do that as : Class ’ class name’.default.var_name
can I do something like that in UE4?