UAssetEditorSubsystem::FindEditorForAsset

Returns the primary editor if one is already open for the specified asset.

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

IAssetEditorInstance * FindEditorForAsset
(
    UObject * Asset,
    bool bFocusIfOpen
)

Remarks

Returns the primary editor if one is already open for the specified asset. If there is one open and bFocusIfOpen is true, that editor will be brought to the foreground and focused if possible.

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