public override Texture2D RenderStaticPreview(string assetPath, Object[] subAssets, int width, int height)
{
if (!this.HasStaticPreview() || !ShaderUtil.hardwareSupportsRectRenderTexture)
{
return null;
}
this.InitPreview();
this.m_PreviewUtility.BeginStaticPreview(new Rect(0f, 0f, (float) width, (float) height));
this.DoRenderPreview();
return this.m_PreviewUtility.EndStaticPreview();
}