Can a Blueprint subclass override a C++ class' component type?
I have a C++
I want to derive multiple versions of
I can't seem to figure out how to do it -- when I am editing the derived Blueprint class, it just says "Cannot edit variable type when they are inherited from parent." for the type of
Previous questions found in my searches that did not answer my question:
Alternatively, it could also work if I had a
Thank you for your time.
The abstract subobject method will work, but only in C++. You'd need a derived C++ class for each character type (which you could then further specialize in a blueprint if you wanted). To do that, declare your base class constructor with an
Then in each of your derived classes, you need to override as follows:
Your alternative approach is also an option, it has the advantage that you can add new subclasses and select their weapon type purely in blueprint, with the disadvantage that it requires a bit more manual setup. Basically, you'd just create whatever component you want via the
answered Jan 21 '16 at 07:44 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here