API ReferenceEditor
IAssetEditorclass
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" )]`
object→IAssetEditor
Methods4
Showing 4 methods
public virtual void AssetOpen(Editor.Asset asset)
Open the asset in this editor.
| Parameter | Type | Description |
|---|---|---|
| asset | Asset | — |
Returns:
void—public static bool OpenInEditor(Editor.Asset asset, Editor.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. (`Editor.IAssetEditor.CanOpenMultipleAssets`)
| Parameter | Type | Description |
|---|---|---|
| asset | Asset | — |
| editor | IAssetEditor | — |
Returns:
boolWhether an asset editor was found for given asset.public virtual void SelectMember(string memberName)
| Parameter | Type | Description |
|---|---|---|
| memberName | string | — |
Returns:
void—No results match this filter.
Properties1
Showing 1 properties
public virtual bool Editor.IAssetEditor.CanOpenMultipleAssets { get; set; }
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.
Returns:
bool—No results match this filter.