Synced
IAssetReferenceResolver.Resolve
Section titled “IAssetReferenceResolver.Resolve”
- Resolves one serialized asset reference to the canonical object owned by this resolver.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”Inno.Assets.AssetObject Inno.Assets.IAssetReferenceResolver.Resolve(System.Guid persistentId, System.Guid stableTypeId, string lastKnownPath, System.Type expectedType, string propertyPath)Parameters
Section titled “Parameters”Parameter persistentId: The persistent asset identity encoded in the reference.
Parameter stableTypeId: The stable concrete asset type identity encoded in the reference.
Parameter lastKnownPath: The optional logical path retained for diagnostics and authoring recovery.
Parameter expectedType: The declared property type that the resolved object must satisfy.
Parameter propertyPath: The serialization property path used when reporting resolution failures.
Returns
Section titled “Returns”The canonical compatible asset owned by this resolver’s generation.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when the reference cannot be resolved to a compatible asset.