interface
IAssetEditor
public interface IAssetEditor A widget (usually window) implementing this will be able to edit assets via the asset browser. The widget should be marked with the attribute of the asset's extension, like this [CanEdit( "asset:vsndstck" )]
Properties
| Name | Type | Description |
|---|---|---|
CanOpenMultipleAssets virtual | Boolean | If this editor is able to edit multiple assets at the same time then return true and we'll try to create only one version of that editor and AssetOpen will be called multiple times. |
Methods
static Boolean OpenInEditor(Asset asset, IAssetEditor editor) Open given asset in a new asset editor window. Will reuse already open editors for same asset type if the editor supports it. (CanOpenMultipleAssets)
returns — Whether an asset editor was found for given asset.
static Boolean TryOpenUsingStaticMethod(Asset asset) virtual Void AssetOpen(Asset asset) Open the asset in this editor.
virtual Void SelectMember(String memberName) Fields
| Name | Type | Description |
|---|---|---|
OpenMultiAssetEditors static | Dictionary<String, IAssetEditor> | A list of open editors that support multiple assets at once. |
OpenSingleEditors static | Dictionary<String, IAssetEditor> | A list of open editors for individual assets. |