Files
semion piskarev 3d4bf819a5 ModelingTools: Allow tools to customize the accept/cancel overlay for sub-activitites, and use this in PolyEd.
#rb lonnie.li
#jira UE-196706

[CL 30601293 by semion piskarev in ue5-main branch]
2024-01-12 15:01:55 -05:00

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());
}