unreal.AssetEditorSubsystem

class unreal.AssetEditorSubsystem(outer=None, name='None')

Bases: unreal.EditorSubsystem

UAssetEditorSubsystem

C++ Source:

  • Module: UnrealEd

  • File: AssetEditorSubsystem.h

close_all_editors_for_asset(asset)int32

Close all active editors for the supplied asset and return the number of asset editors that were closed

Parameters

asset (Object) –

Returns

Return type

int32

open_editor_for_assets(assets)bool

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.

Parameters

assets (Array(Object)) –

Returns

Return type

bool