Synced
AssetCreationTemplate.Encode
Section titled “AssetCreationTemplate.Encode”
- Encodes the detached initial value into the source representation owned by this template.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Assets
Scope: Editor
Declaration
Section titled “Declaration”public virtual byte[] InnoEditor.Assets.AssetCreationTemplate.Encode(InnoEditor.Assets.AssetCreationContext context, InnoEngine.Assets.AssetObject asset)Parameters
Section titled “Parameters”Parameter context: Creation services scoped to the current Asset source pipeline.
Parameter asset: The exact value returned by M:InnoEditor.Assets.AssetCreationTemplate.Create.
Returns
Section titled “Returns”Complete source bytes ready for an atomic File Browser create operation.
Remarks
Section titled “Remarks”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.