Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Provides script-facing asset queries through the lookup bound to the current runtime session.

API: scripting
Inherits: object
Project: Inno.Assets
Scope: Runtime

public static class InnoEngine.Assets.Assets

This façade owns no asset state. Engine and Editor infrastructure should depend on an explicit T:InnoEngine.Assets.IAssetLookup instance.

Kind Element Description
Methods Assets.AcquireArtifact Acquires one verified immutable artifact output for an explicit lifetime.
Methods Assets.AcquireAsync(InnoEngine.Assets.AssetPath,System.Threading.CancellationToken) Acquires a canonical asset and explicitly retains it until the returned lease is disposed.
Methods Assets.AcquireAsync(System.Guid,System.Threading.CancellationToken) Acquires a canonical asset by persistent identity and explicitly retains it.
Methods Assets.Load(InnoEngine.Assets.AssetPath) Loads the canonical asset at a logical catalog path in the current session.
Methods Assets.Load(System.Guid) Loads the canonical asset with a persistent identity in the current session.
Methods Assets.LocalPath Creates a path relative to the Asset source that owns the calling script.
Methods Assets.TryLoad(InnoEngine.Assets.AssetPath,“0@) Tries to load the canonical asset at a logical catalog path in the current session.
Methods Assets.TryLoad(System.Guid,“0@) Tries to load the canonical asset with a persistent identity in the current session.