Announcement

Collapse
No announcement yet.

How to get components from a spawned Actor?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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:
    Code:
    SpawnedActorRef = GetWorld()->SpawnActor<AActor>(Actor);
    Then, I try GetComponents() but didn't work.

    Is there a way to do this?

    Thanks.

    #2
    Originally posted by pseudocheesy View Post
    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:
    Code:
    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

    Comment


      #3
      According to the docs.

      Comment

      Working...
      X