You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb brooke.hubert Thomas.Sarkanen #jira UE-143249 #preflight 628549709e72602f6ab62b3b [CL 20282438 by zach rammell in ue5-main branch]
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "IPersonaEditorModeManager.h"
|
|
|
|
#include "ContextObjectStore.h"
|
|
#include "EdModeInteractiveToolsContext.h"
|
|
|
|
IPersonaEditorModeManager* UPersonaEditorModeManagerContext::GetPersonaEditorModeManager() const
|
|
{
|
|
return ModeManager;
|
|
}
|
|
|
|
bool UPersonaEditorModeManagerContext::GetCameraTarget(FSphere& OutTarget) const
|
|
{
|
|
check(ModeManager);
|
|
return ModeManager->GetCameraTarget(OutTarget);
|
|
}
|
|
|
|
void UPersonaEditorModeManagerContext::GetOnScreenDebugInfo(TArray<FText>& OutDebugText) const
|
|
{
|
|
check(ModeManager);
|
|
return ModeManager->GetOnScreenDebugInfo(OutDebugText);
|
|
}
|
|
|
|
IPersonaEditorModeManager::IPersonaEditorModeManager() : FAssetEditorModeManager()
|
|
{
|
|
UContextObjectStore* ContextObjectStore = GetInteractiveToolsContext()->ContextObjectStore;
|
|
ContextObjectStore->AddContextObject(PersonaModeManagerContext.Get());
|
|
}
|
|
|
|
IPersonaEditorModeManager::~IPersonaEditorModeManager()
|
|
{
|
|
UContextObjectStore* ContextObjectStore = GetInteractiveToolsContext()->ContextObjectStore;
|
|
ContextObjectStore->RemoveContextObject(PersonaModeManagerContext.Get());
|
|
}
|
|
|
|
void IPersonaEditorModeManager::AddReferencedObjects(FReferenceCollector& Collector)
|
|
{
|
|
FAssetEditorModeManager::AddReferencedObjects(Collector);
|
|
Collector.AddReferencedObject(PersonaModeManagerContext);
|
|
} |