How to let sub classes override components.
I have a base class with a component of some abstract type. Then I have a subclass that needs to use a specific type.
Is this possible? So far the things I've tried resulted in runtime errors on startup.
Ah I figured it out!
Thanks to this question:
This was very confusing at first, but I ended up doing something like this:
PCIP.SetDefaultSubobjectClass returns a PCIP so you can string multiple SetDefaultSubobjectClass together inside the super constructor.
And if anyone's wondering, this was code to have items affected by physics, like guns laying on the ground.
Follow this question
Once you sign in you will be able to subscribe for any updates here