UnityEditor.SpriteInspector.RenderStaticPreview C# (CSharp) Method

RenderStaticPreview() public method

public RenderStaticPreview ( string assetPath, Object subAssets, int width, int height ) : Texture2D
assetPath string
subAssets Object
width int
height int
return UnityEngine.Texture2D
        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);
        }