Download

Cast on interfaces does not work

I made an InteractionInterface interface in c ++ and cast on it in this way Cast <IInteractionInterface> (OutHit.GetActor ()); And it works, but only if the actor for which we are casting is written in c ++, if the actor is written in Blueprints, the casting does not pass and gives nullptr. By the way, if you cast in Blueprints, then the cast goes. But I want to be able to cast in c ++ for classes written in Blueprints. I know that you can initially create a class in c ++ and inherit the Blueprint class from it, but this is not convenient, not everyone can get into the c ++ part of the project and do what is needed there.