Synced
AssetRuntimeOwner.Initialize
Section titled “AssetRuntimeOwner.Initialize”
- Claims an unowned asset or commits new runtime state to an already owned instance.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”public void Inno.Assets.AssetRuntimeOwner.Initialize(Inno.Assets.AssetObject asset, Inno.Assets.AssetPath assetPath, string sourceHash, System.ReadOnlyMemory<byte> payload, bool isMissing, long version)Parameters
Section titled “Parameters”Parameter asset: The instance to initialize; ownership cannot be transferred between databases.
Parameter assetPath: The current mount-qualified source path.
Parameter sourceHash: The immutable source fingerprint.
Parameter payload: Runtime bytes copied before publication.
Parameter isMissing: Whether the preserved reference is currently unavailable.
Parameter version: The current content revision used to invalidate runtime caches.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: The asset belongs to a different owner.