public RenderStaticPreview ( string assetPath, Object subAssets, int width, int height ) : |
||
assetPath | string | |
subAssets | Object | |
width | int | |
height | int | |
return |
public override Texture2D RenderStaticPreview(string assetPath, Object[] subAssets, int width, int height)
{
bool isPolygon = false;
TextureImporter atPath = AssetImporter.GetAtPath(assetPath) as TextureImporter;
if (atPath != null)
{
isPolygon = atPath.spriteImportMode == SpriteImportMode.Polygon;
}
return BuildPreviewTexture(width, height, this.sprite, null, isPolygon);
}