예제 #1
0
 /// <summary>
 /// Compiles the asset from the specified package.
 /// </summary>
 /// <param name="context">The thumbnail compile context</param>
 /// <param name="thumbnailStorageUrl">The absolute URL to the asset's thumbnail, relative to the storage.</param>
 /// <param name="assetItem">The asset to compile</param>
 /// <param name="originalPackage"></param>
 /// <param name="result">The result where the commands and logs should be output.</param>
 protected abstract void CompileThumbnail(ThumbnailCompilerContext context, string thumbnailStorageUrl, AssetItem assetItem, Package originalPackage, AssetCompilerResult result);
예제 #2
0
 public CustomAssetThumbnailBuildCommand(ThumbnailCompilerContext context, string url, AssetItem assetItem, IAssetFinder assetFinder, ThumbnailCommandParameters description)
     : base(context, assetItem, assetFinder, url, description)
 {
 }
예제 #3
0
 protected ThumbnailFromTextureCommand(ThumbnailCompilerContext context, AssetItem assetItem, IAssetFinder assetFinder, string url, ThumbnailCommandParameters parameters)
     : base(context, assetItem, assetFinder, url, parameters)
 {
 }
예제 #4
0
 protected override void CompileThumbnail(ThumbnailCompilerContext context, string thumbnailStorageUrl, AssetItem assetItem, Package originalPackage, AssetCompilerResult result)
 {
     result.BuildSteps.Add(new CustomAssetThumbnailBuildCommand(context, thumbnailStorageUrl, assetItem, originalPackage, new ThumbnailCommandParameters(assetItem.Asset, thumbnailStorageUrl, context.ThumbnailResolution)));
 }