FAssetEditorManager::OpenEditorForAssets

Tries to open an editor for all of the specified assets.

Windows
MacOS
Linux

Deprecated

  • Use the matching function on AssetEditorSubsystem instead.

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Toolkits/AssetEditorManager.h

Include

#include "Toolkits/AssetEditorManager.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Toolkits/AssetEditorManager.cpp

Syntax

bool OpenEditorForAssets
(
    const TArray< UObject * > & Assets,
    const EToolkitMode::Type ToolkitMode,
    TSharedPtr< IToolkitHost > OpenedFromLevelEditor
)

Remarks

Tries to open an editor for all of the specified assets. If any of the assets are already open, it will not create a new editor for them. If all assets are of the same type, the supporting AssetTypeAction (if it exists) is responsible for the details of how to handle opening multiple assets at once.

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