How, or can an ACharacter class be extended to be used in Unreal Engine character objects.
After previous times trying out and using Unreal Engine to hack around to test if some ideas and concepts I want to implement in a 3D environment, I am now ready and wanting to get serious and create something tangible and productive in Unreal Engine using C++.
The first thing I want to do is to extend and expand the existing ACharacter class so I can use this extended ACharacter class in the character object that the UE editor creates. I thought this should not be too difficult as all I needed to do would be to create a new class within a blank C++ file created by UE which inherits the ACharacter class as
add my own code and then modify the character generated .h file UE creates using the class wizard from
and changing references of ACharacter in the my_Character.generated and my_Character.gen files to ACharacter_extension.
In my naivity and ignorance of what UE does and how it works when creating a character using the class wizard, and what is involved in compiling a UE project, this failed.
I have spent a lot of time scouring the documentation, the internet, and google and have found scant and confusing information, and certainly no examples on if what I want to do can be possible, and if it can, how it can be done.
If it can be done, I suspect it it may be a line of code added to one of the .cs files that instructs the editor to substitute the GameFramework/Character.h and .cpp file with a specified pathname.
Is there anyone out there that can help indicate to me if using an extended ACharacter class can be substituted for the default ACharacter class the class wizard uses or can manually be assigned? If so how or where I can find the information on how to do so. I would much appreciate any help.
Thanks in advance.
asked Aug 27 '18 at 05:03 AM in C++ Programming
Let me get this straight. Am I correct into assuming that you want the editor to use your character class when you select create blueprint and then select the character from the common classes list?
If so, that seems like a major waste of time. Just create a new blueprint and select your character class from all classes, below the common classes window. Sure, it takes a few seconds more, but I reckon you will waste those seconds anyway trying to reconfigure the common classes.
answered Aug 27 '18 at 05:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here