Logo
Explore Help
Sign In
izzy/UnrealEngineUWP
0
0
Fork 0
You've already forked UnrealEngineUWP
mirror of https://github.com/izzy2lost/UnrealEngineUWP.git synced 2026-03-26 18:15:20 -07:00
Code Issues Packages Projects Releases Wiki Activity
Files
00efdf60976d957eafeb1949031c62b68ec92aec
UnrealEngineUWP/Engine/Source/Editor/LevelEditor/Private/LevelEditorMenuContext.cpp

10 lines
322 B
C++
Raw Normal View History

Fixed the typed element scripting api issues. Added the FScriptTypedElementHandle. These handles are disarmed when the element they pointing to is destroyed instead of crashing the engine. They do have a performance overhead so using these should be restricted to exposing stuff to blueprint/python. Reworked the TypedElementList to be a template so that we have both a FTypedElementList and a FScriptTypedElementList from the same source code. Changed the api of the interfaces so that can now accept and use the scripted version of the handle and list instead of the native ones. #jira UE-133667 #rb Brooke.Hubert #preflight 61f89bfaf657e25a5908db48 #ROBOMERGE-AUTHOR: julien.stjean #ROBOMERGE-SOURCE: CL 18816318 in //UE5/Release-5.0/... via CL 18816336 via CL 18822818 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042) [CL 18824371 by julien stjean in ue5-main branch]
2022-02-02 07:40:00 -05:00
// Copyright Epic Games, Inc. All Rights Reserved.
#include "LevelEditorMenuContext.h"
#include "Elements/Framework/TypedElementRegistry.h"
FScriptTypedElementHandle ULevelEditorContextMenuContext::GetScriptHitProxyElement()
{
return UTypedElementRegistry::GetInstance()->CreateScriptHandle(HitProxyElement.GetId());
}
Reference in New Issue Copy Permalink
Powered by Gitea Page: 2225ms Template: 4ms
English
English
Licenses API