5 using SiliconStudio.Core.IO;
7 namespace SiliconStudio.Assets.Compiler
22 if (context == null)
throw new ArgumentNullException(
"context");
23 if (assetItem == null)
throw new ArgumentNullException(
"assetItem");
30 var fullPath = assetItem.FullPath;
31 if (!fullPath.IsAbsolute)
33 throw new InvalidOperationException(
"assetItem must be an absolute path");
Result of a compilation of assets when using IAssetCompiler.Compile
The context used when compiling an asset in a Package.
An asset item part of a Package accessible through SiliconStudio.Assets.Package.Assets.
The context used when compiling an asset in a Package.
UFile Location
Gets the location of this asset.
AssetItem AssetItem
The current AssetItem to compile.
AssetCompilerResult Compile(CompilerContext context, AssetItem assetItem)
Compiles a list of assets from the specified package.
string GetDirectoryAndFileName()
Gets the file path (UPath.GetDirectory() + '/' + UFile.GetFileName()) without the extension or drive...
Main interface for compiling an Asset.
Asset Asset
Gets or sets the asset.
Defines a normalized file path. See UPath for details. This class cannot be inherited.