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: engine
Project: Inno.Editor.Assets
Declaration
Section titled “Declaration”public virtual byte[] Inno.Editor.Assets.AssetCreationTemplate.Encode(Inno.Editor.Assets.AssetCreationContext context, Inno.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:Inno.Editor.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.