Synced
Assets.LocalPath
Section titled “Assets.LocalPath”
- Creates a path relative to the Asset source that owns the calling script.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Assets
Scope: Runtime
Declaration
Section titled “Declaration”public static InnoEngine.Assets.AssetPath InnoEngine.Assets.Assets.LocalPath(string localPath, string sourceFile = "")Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”A mount-qualified path that follows the script from Project development into an installed Plugin.
Exceptions
Section titled “Exceptions”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.