UAssetEditorSubsystem::CreateEditorModeWithToolsOwner

Creates a scriptable editor mode based on ID name, which will be owned by the given Owner, if that name exists in the map of editor modes found at system startup.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Subsystems/AssetEditorSubsystem.h

Include

#include "Subsystems/AssetEditorSubsystem.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Subsystems/AssetEditorSubsystem.cpp

Syntax

UEdMode * CreateEditorModeWithToolsOwner
(
    FEditorModeID ModeID,
    FEditorModeTools & Owner
)

Remarks

Creates a scriptable editor mode based on ID name, which will be owned by the given Owner, if that name exists in the map of editor modes found at system startup.

Returns

A pointer to the created UEdMode or nullptr, if the given ModeID does not exist in the set of known modes.

Parameters

Parameter

Description

ModeID

ID of the mode to create.

Owner

The tools ownership context that the mode should be created under.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss