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

API: engine
Project: Inno.Editor.Assets

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

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

Parameter asset: The exact value returned by M:Inno.Editor.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.