Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a native or ordinary-text asset source as one recoverable shared-history operation.

API: engine
Project: Inno.Editor.Assets

public Inno.Assets.Pipeline.AssetFileEntry Inno.Editor.Assets.AssetEditingModule.CreateSource(Inno.Assets.AssetPath path, System.ReadOnlySpan<byte> bytes)

Parameter path: A new file in an existing writable asset directory.

Parameter bytes: Complete source bytes supplied by the feature’s native writer.

The indexed source identity, even when its first import reports a source error.

Exception T:System.IO.IOException: The source already exists, has no existing parent, or cannot be installed.

Exception T:System.InvalidOperationException: The source mount is unavailable/read-only or history cannot retain the change.