コード例 #1
0
void UActorComponent::RegisterComponent()
{
	if (ensure(GetOwner() && GetOwner()->GetWorld()))
	{
		RegisterComponentWithWorld(GetOwner()->GetWorld());
	}
}
コード例 #2
0
void UActorComponent::RegisterComponent()
{
	AActor* MyOwner = GetOwner();
	if (ensure(MyOwner && MyOwner->GetWorld()))
	{
		RegisterComponentWithWorld(MyOwner->GetWorld());
	}
}