Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Encodes the detached initial value into the source representation owned by this template.

API: scripting
Project: Inno.Editor.Assets
Scope: Editor

public virtual byte[] InnoEditor.Assets.AssetCreationTemplate.Encode(InnoEditor.Assets.AssetCreationContext context, InnoEngine.Assets.AssetObject asset)

Parameter context: Creation services scoped to the current Asset source pipeline.

Parameter asset: The exact value returned by M:InnoEditor.Assets.AssetCreationTemplate.Create.

Complete source bytes ready for an atomic File Browser create operation.

The default implementation uses native structured Asset serialization. Templates paired with a textual or custom binary importer can override this method without changing the File Browser or registering a second creation protocol.