Skip to content

Instantly share code, notes, and snippets.

@sephirot47
Last active August 29, 2015 14:23
Show Gist options
  • Save sephirot47/03d6498857288a6d665a to your computer and use it in GitHub Desktop.
Save sephirot47/03d6498857288a6d665a to your computer and use it in GitHub Desktop.
UE4 Get Actor's components
UComponentType *myComponent;
TArray<UComponentType*> comps;
actor->GetComponents(comps);
if (comps.Num() > 0) myComponent = comps[0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment