void UActorComponent::RegisterComponent() { if (ensure(GetOwner() && GetOwner()->GetWorld())) { RegisterComponentWithWorld(GetOwner()->GetWorld()); } }
void UActorComponent::RegisterComponent() { AActor* MyOwner = GetOwner(); if (ensure(MyOwner && MyOwner->GetWorld())) { RegisterComponentWithWorld(MyOwner->GetWorld()); } }