s&box docs

public abstract interface Editor.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" )]`

Broader workflow and conceptual references connected to this API.

Methods

Showing 4 methods

public virtual void AssetOpen(Editor.Asset asset)

Open the asset in this editor.

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

Returns

Whether an asset editor was found for given asset.

public virtual void SelectMember(string memberName)

public static bool TryOpenUsingStaticMethod(Editor.Asset asset)

Properties

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.

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.IAssetEditor

On this page