Synced
AssetLoader.PrepareCatalogCandidate
Section titled “AssetLoader.PrepareCatalogCandidate”
- Creates an isolated source-mount and catalog candidate without changing the active catalog.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public Inno.Assets.Pipeline.AssetCatalogCandidate Inno.Assets.Pipeline.AssetLoader.PrepareCatalogCandidate(System.Collections.Generic.IReadOnlyList<Inno.Assets.Pipeline.AssetSourceMount> mounts, Inno.Assets.Pipeline.AssetSourcePolicy? sourcePolicy = null)Parameters
Section titled “Parameters”Parameter mounts: The complete source-mount snapshot to validate.
Parameter sourcePolicy: The source policy for the candidate, or null to reuse this loader’s policy.
Returns
Section titled “Returns”A candidate that owns its catalog staging storage and exposes the isolated loader to its owner.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when the mount snapshot is empty, duplicated, or has no writable project source.
Exception T:System.IO.IOException: Thrown when the active catalog cannot be copied into candidate storage.