Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Creates a path relative to the Asset source that owns the calling script.

API: scripting
Project: Inno.Assets
Scope: Runtime

public static InnoEngine.Assets.AssetPath InnoEngine.Assets.Assets.LocalPath(string localPath, string sourceFile = "")

Parameter localPath: The normalized path relative to the caller’s Project or installed Plugin Assets root.

Parameter sourceFile: The compiler-supplied canonical Asset path of the calling source file; callers normally omit it.

A mount-qualified path that follows the script from Project development into an installed Plugin.

Exception T:System.InvalidOperationException: The caller does not provide a canonical source location produced by the scripting compiler.

Exception T:System.ArgumentNullException: The local path or source location is null.