Synced
AssetImportContext.ReadSourceBytes
Section titled “AssetImportContext.ReadSourceBytes”
- Reads another source from the same candidate mount snapshot and records it as an import dependency.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public System.ReadOnlyMemory<byte> Inno.Assets.Pipeline.AssetImportContext.ReadSourceBytes(Inno.Assets.AssetPath path)Parameters
Section titled “Parameters”Parameter path: An isolated path whose mount dependency was declared when it crosses Plugin boundaries.
Returns
Section titled “Returns”An immutable source snapshot owned by the import operation.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when the source crosses an undeclared mount boundary or references the writable Project from a Plugin.
Exception T:System.IO.FileNotFoundException: Thrown when the resolved source does not exist.