You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-117132 #jira UE-117332 #jira UE-117327 #jira UE-117329 #rb marc.audy #rnx #preflight 60d48296925f1400010bb909 [CL 16773601 by ben hoffman in ue5-main branch]
32 lines
855 B
C++
32 lines
855 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "ChildActorSubobjectData.h"
|
|
|
|
FChildActorSubobjectData::FChildActorSubobjectData(UObject* ContextObject, const FSubobjectDataHandle& ParentHandle, const bool InbIsInheritedSCS)
|
|
: FInheritedSubobjectData(ContextObject, ParentHandle, InbIsInheritedSCS)
|
|
{
|
|
}
|
|
|
|
FText FChildActorSubobjectData::GetDisplayName() const
|
|
{
|
|
if(const UChildActorComponent* CAC = GetChildActorComponent())
|
|
{
|
|
return CAC->GetClass()->GetDisplayNameText();
|
|
}
|
|
return FInheritedSubobjectData::GetDisplayName();
|
|
}
|
|
|
|
FText FChildActorSubobjectData::GetActorDisplayText() const
|
|
{
|
|
if (const AActor* ChildActor = GetObject<AActor>())
|
|
{
|
|
return ChildActor->GetClass()->GetDisplayNameText();
|
|
}
|
|
|
|
return FInheritedSubobjectData::GetActorDisplayText();
|
|
}
|
|
|
|
bool FChildActorSubobjectData::IsChildActor() const
|
|
{
|
|
return true;
|
|
} |