I was simply wondering, how I do something equivalent in C++ to the blueprint-function “GetClassDefaults”?
I have a variable that is a subclass of my UObject-class UPrimalItemBase, which is called “ItemClass”, that is a class-reference to the class I need access to:
You need to Get the Default Object for that class, it returns an Object you can cast to a specific class, then retrieve values from it, they’ll all be the defaults.
I know I can access default variables this way, however, I also need to be able to access variables from classes that are subclasses of my superclass. If you could provide me a solution to this that would be great!
However, I’m not even sure if this is possible.