You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira #preflight 6306736ac85b7fef22be7751 [CL 21558583 by bryan sefcik in ue5-main branch]
35 lines
916 B
C++
35 lines
916 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "ChildActorSubobjectData.h"
|
|
|
|
#include "GameFramework/Actor.h"
|
|
#include "UObject/Class.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;
|
|
} |