Blueprint TRASHCLASS issue on project load

I’m not even sure how best to explain this one. I’m having this problem within a couple of my classes, but I’ll detail out one example of it

I have a blueprint called DefaultCombatant, one of the child blueprints off that is DefaultCharacter, from there, I have a child blueprint called Mystic.

Under Mystic, I have an ability called Cure Continue, with an input pin of DefaultCombatant that calls to a function (that is in DefaultCombatant and overridden in DefaultCharacter) called Heal.

If I compile DefaultCombatant, then compile DefaultCharacter, the warning goes away and everything works fine. However, everytime I close and open the project, the problem comes back.

You can see the exact warnings I’m getting in the image below (which prevents the Heal function from being called.

As an additional note, this all started happening when I created DefaultCombatant and reparented DefaultCharacter to it.

You shouldn’t re-parent dependent classes.

If possible, rebuild your classes from scratch with the correct parent types from the beginning.

Re-parenting can be dangerous, usually its better to keep the old version, make it depreciated and then rebuild a new class.

I was really afraid that’s what the recommended solution was going to be. I’ll work on that over the next couple of days and see if it fixes the issue.

I appreciate the response!

I made all new blueprints from scratch, but it’s still giving me the exact same problem as above.

I remember having a similar problem in 4.8 but it wasnt due to a Reparent and i cant remember how i fixed it, i think i recreated the classes like i suggested.

So your class hierarchy is now DefaultCombatant as the base class and DefaultCharacter inherits from that and then Mystic inherits from DefaultCharacter.

Try implementing the function as an Interface member, that will do the trick for sure, or if possible change the reference to the exact class type.

Okay, so I took your idea of using an interface and reworked some code. I can compile things now, and the issues don’t return when I reload the editor.

While it doesn’t solve the technical issue I have, it does let me move forward, so that works.

Thank you!