I want to attach pawn like this :
How to attach pawn to an actor procedurally?
Update:
I spawn a Pawn:
APawn* myPawn = GWorld->SpawnActor<APawn>(NewObject<APawn>()->GetClass());
And try to Attach:
myPawn->AttachToActor(OriginActor, rule);
inCamSet->AttachToActor(myPawn, rule);
But it not attach to anything.
Kehel18
(Kehel18)
2
Hello! If you are using BP you can use nodes AttachActorToActor, AttachActorToComponent or AttachComponentToComponent
Ok I see, Thanks. But I can’t attach actor to pawn or attach pawn to actor.
Kehel18
(Kehel18)
4
Why? I just checked that out on 4.26 and everything is Ok, attachment is displayed in World Outliner