Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Subsystems
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEditorSubsystem
- UAssetEditorSubsystem
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Subsystems/AssetEditorSubsystem.h |
| Include | #include "Subsystems/AssetEditorSubsystem.h" |
Syntax
class UAssetEditorSubsystem : public UEditorSubsystem
Remarks
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Close all open asset editors | ||
| int32 | CloseAllEditorsForAsset
(
UObject* Asset |
Close all active editors for the supplied asset and return the number of asset editors that were closed | |
| void | CloseOtherEditors
(
UObject* Asset, |
Close any editor which is not this one | |
| UEdMode * | CreateEditorModeWithToolsOwner
(
FEditorModeID ModeID, |
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. | |
| void | CreateRecentAssetsMenuForEditor
(
const IAssetEditorInstance* InAssetEditorInstance, |
Fill in the given section with the recent assets for the given asset editor instance | |
| IAssetEditorInstance * | FindEditorForAsset
(
UObject* Asset, |
Returns the primary editor if one is already open for the specified asset. | |
| bool | FindEditorModeInfo
(
const FEditorModeID& InModeID, |
Returns information about an editor mode, based on the given ID. | |
| TArray< IAssetEditorInstance * > | FindEditorsForAsset
(
UObject* Asset |
Returns all editors currently opened for the specified asset | |
| TArray< IAssetEditorInstance * > | FindEditorsForAssetAndSubObjects
(
UObject* Asset |
Returns all editors currently opened for the specified asset or any of its subobjects | |
| TArray< UObject * > | Get all assets currently being tracked with open editors | ||
| FNamePermissionList & | Get the permission list that controls which editor modes are exposed | ||
| TOptional< bool > | Get the current value of bAutoRestoreAndDisableSaving | ||
| TArray< FEditorModeInfo > | Creates an array of all known FEditorModeInfos, sorted by their priority, from greatest to least. | ||
| FMainMRUFavoritesList * | |||
| bool | IsAssetEditable
(
const UObject* Asset |
||
| void | NotifyAssetClosed
(
UObject* Asset, |
Notify the asset editor manager that an asset editor is done editing an asset | |
| void | NotifyAssetOpened
(
UObject* Asset, |
Notify the asset editor manager that an asset was opened | |
| void | NotifyAssetsOpened
(
const TArray< UObject* >& Assets, |
||
| void | NotifyEditorClosed
(
IAssetEditorInstance* Instance |
Notify the asset editor manager that an asset was closed | |
| void | NotifyEditorOpeningPreWidgets
(
const TArray< UObject* >& Assets, |
Notify the asset editor manager that an asset editor is being opened and before widgets are constructed | |
| FAssetEditorOpenEvent & | |||
| FAssetEditorRequestCloseEvent & | |||
| FAssetEditorRequestOpenEvent & | |||
| FOnAssetOpenedInEditorEvent & | |||
| FOnModeRegistered & | Event that is triggered whenever a mode is registered | ||
| FRegisteredModesChangedEvent & | Event that is triggered whenever a mode is registered or unregistered | ||
| FOnModeUnregistered & | Event that is triggered whenever a mode is unregistered | ||
| FOnAssetsOpenedInEditorEvent & | |||
| bool | OpenEditorForAsset
(
TObjectPtr< ObjectType > Asset, |
||
| bool | OpenEditorForAsset
(
UObject* Asset, |
Tries to open an editor for the specified asset. | |
| void | OpenEditorForAsset
(
const FString& AssetPathName, |
Opens an asset by path | |
| void | OpenEditorForAsset
(
const FSoftObjectPath& AssetPath, |
Opens an asset by path | |
| bool | OpenEditorForAssets
(
const TArray< UObject* >& Assets, |
Tries to open an editor for all of the specified assets. | |
| bool | OpenEditorForAssets_Advanced
(
const TArray< UObject* >& InAssets, |
Tries to open an editor for all of the specified assets. | |
| void | OpenEditorsForAssets
(
const TArray< FName >& AssetsToOpen, |
Opens editors for the supplied assets (via OpenEditorForAsset) | |
| void | OpenEditorsForAssets
(
const TArray< FString >& AssetsToOpen, |
Opens editors for the supplied assets (via OpenEditorForAsset) | |
| void | OpenEditorsForAssets
(
const TArray< FSoftObjectPath >& AssetsToOpen |
Opens editors for the supplied assets (via OpenEditorForAsset) | |
| void | RegisterUAssetEditor
(
UAssetEditor* NewAssetEditor |
||
| void | RemoveAssetFromAllEditors
(
UObject* Asset |
Remove given asset from all open editors | |
| void | Request notification to restore the assets that were previously open when the editor was last closed | ||
| void | Restore the assets that were previously open when the editor was last closed. | ||
| void | SaveOpenAssetEditors
(
const bool bOnShutdown |
Saves a list of open asset editors so they can be restored on editor restart. | |
| void | SetAutoRestoreAndDisableSavingOverride
(
TOptional< bool > bInAutoRestoreAndDisableSaving |
Set/Unset the bAutoRestoreAndDisableSaving override, along with setting bRequestRestorePreviouslyOpenAssets to false to avoid running RestorePreviouslyOpenAssets() twice | |
| void | SetRecentAssetsFilter
(
const FMainMRUFavoritesList::FDoesMRUFavoritesItemPassFilter& InFilter |
||
| void | UnregisterUAssetEditor
(
UAssetEditor* RemovedAssetEditor |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Implement this for initialization of instances of the system |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FAssetEditorOpenEvent | Called when an asset editor is actually opened | ||
| FAssetEditorRequestCloseEvent | Event called when CloseAllEditorsForAsset/RemoveAssetFromAllEditors is called | ||
| FAssetEditorRequestOpenEvent | Called when an asset editor is requested to be opened | ||
| FOnAssetOpenedInEditorEvent | Called when an asset has been opened in an editor | ||
| FOnAssetsOpenedInEditorEvent | Called when an asset editor is opening and before widgets are constructed |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SaveOpenAssetEditors
(
const bool bOnShutdown, |
Please use the version of SaveOpenAssetEditors with only one argument, bOnShutdown. | |
| void | SetAutoRestoreAndDisableSaving
(
const bool bInAutoRestoreAndDisableSaving |
Please use the SetAutoRestoreAndDisableSavingOverride instead to set/unset the override |