Download

How to get components from a spawned Actor?

Hello, I try to find a way in C++ to get a component from a spawned actor.

I used this code to spawn the actor:


SpawnedActorRef = GetWorld()->SpawnActor<AActor>(Actor);

Then, I try GetComponents() but didn’t work.

Is there a way to do this?

Thanks.

https://answers.unrealengine.com/que…0938/view.html

this should help you

According to the docs.