Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michaeltchapman/c01e20d07de0ba6892bbd8f004860f88 to your computer and use it in GitHub Desktop.
Save michaeltchapman/c01e20d07de0ba6892bbd8f004860f88 to your computer and use it in GitHub Desktop.
LookAtComponent = NewObject<USceneComponent>(this, USceneComponent::StaticClass());
FAttachmentTransformRules ATR = FAttachmentTransformRules(EAttachmentRule::SnapToTarget, false);
LookAtComponent->AttachToComponent(GetRootComponent(), ATR);
LookAtComponent->RegisterComponent();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment