FAssetEditorManager::OpenEditorForAsset

Tries to open an editor for the specified asset.

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 OpenEditorForAsset
(
    UObject * Asset,
    const EToolkitMode::Type ToolkitMode,
    TSharedPtr< IToolkitHost > OpenedFromLevelEditor,
    const bool bShowProgressWindow
)

Remarks

Tries to open an editor for the specified asset. Returns true if the asset is open in an editor. If the file is already open in an editor, it will not create another editor window but instead bring it to front

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