Synced
AssetLoader.SaveImportSettings
Section titled “AssetLoader.SaveImportSettings”
- Atomically saves importer settings and reimports the source. Failed imports retain both the saved settings and the previous successful artifact; callers must inspect the returned import status separately from saving.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public bool Inno.Assets.Pipeline.AssetLoader.SaveImportSettings(Inno.Assets.AssetPath path, Inno.Core.Serialization.ISerializable? settings, string expectedFingerprint)Parameters
Section titled “Parameters”Parameter path: The writable isolated source path.
Parameter settings: A value of the current importer’s settings type, or null to reset to defaults.
Parameter expectedFingerprint: The fingerprint returned when the settings were read.
Returns
Section titled “Returns”True when reimport succeeds; false when settings were saved but reimport failed.
Exceptions
Section titled “Exceptions”Exception T:System.IO.IOException: The sidecar changed externally or could not be written.
Exception T:System.InvalidOperationException: The source is read-only or belongs to an isolated candidate.
Exception T:System.ArgumentException: The settings have a different type from the current importer.