You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
23 lines
587 B
C++
23 lines
587 B
C++
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#include "ToolHostCustomizationAPI.h"
|
||
|
|
|
||
|
|
#include "ContextObjectStore.h"
|
||
|
|
#include "InteractiveToolManager.h"
|
||
|
|
#include "UObject/Object.h"
|
||
|
|
|
||
|
|
TScriptInterface<IToolHostCustomizationAPI> IToolHostCustomizationAPI::Find(UInteractiveToolManager* ToolManager)
|
||
|
|
{
|
||
|
|
if (!ensure(ToolManager))
|
||
|
|
{
|
||
|
|
return nullptr;
|
||
|
|
}
|
||
|
|
|
||
|
|
UContextObjectStore* ContextObjectStore = ToolManager->GetContextObjectStore();
|
||
|
|
if (!ensure(ContextObjectStore))
|
||
|
|
{
|
||
|
|
return nullptr;
|
||
|
|
}
|
||
|
|
|
||
|
|
return ContextObjectStore->FindContextByClass(UToolHostCustomizationAPI::StaticClass());
|
||
|
|
}
|