Synced
AssetEditingModule.CreateSource
Section titled “AssetEditingModule.CreateSource”
- Creates a native or ordinary-text asset source as one recoverable shared-history operation.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Assets
Declaration
Section titled “Declaration”public Inno.Assets.Pipeline.AssetFileEntry Inno.Editor.Assets.AssetEditingModule.CreateSource(Inno.Assets.AssetPath path, System.ReadOnlySpan<byte> bytes)Parameters
Section titled “Parameters”Parameter path: A new file in an existing writable asset directory.
Parameter bytes: Complete source bytes supplied by the feature’s native writer.
Returns
Section titled “Returns”The indexed source identity, even when its first import reports a source error.
Exceptions
Section titled “Exceptions”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.