I have 2 actor blueprints ‘BP_FlightAttendant’ and ‘BP_FlightAttendant_FullBody’ that are inherited from ‘BP_FloatingVideo’
I have a macro that has a BP_FloatingVideo input and then inside this macro, I cast to BP_FlightAttendant or BP_FlightAttendant_FullBody
It functions correctly, but my log is filled with warnings about how the cast will always fail, or that the object is already the expected class.
Is this a bug? I’ve tried removing and readding the input, but that hasn’t sorted it.
Although it works correcly it’s really annoying and I imagine has some sort of performance hit, even if very slight.
Because the object is already the expected class. No need to cast to children ever. If you’re attempting to cast to another instance of the same class you can just get the reference to the instance and use an Interface to call a function on that instance…