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" )]`

objectIAssetEditor
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public abstract interface Editor.IAssetEditor

Methods4

Showing 4 methods

public virtual void AssetOpen(Editor.Asset asset)PUBLICVIRTUAL

Open the asset in this editor.

ParameterTypeDescription
assetAsset
Returns:void

public static bool OpenInEditor(Editor.Asset asset, Editor.IAssetEditor editor)PUBLICSTATIC

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`)

ParameterTypeDescription
assetAsset
editorIAssetEditor
Returns:boolWhether an asset editor was found for given asset.

public virtual void SelectMember(string memberName)PUBLICVIRTUAL

ParameterTypeDescription
memberNamestring
Returns:void

public static bool TryOpenUsingStaticMethod(Editor.Asset asset)PUBLICSTATIC

ParameterTypeDescription
assetAsset
Returns:bool

Properties1

Showing 1 properties

public virtual bool Editor.IAssetEditor.CanOpenMultipleAssets { get; set; }PUBLICVIRTUALGETSET

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

On this page