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)
{
if (!ShaderUtil.hardwareSupportsRectRenderTexture)
{
return null;
}
this.Init();
this.m_PreviewUtility.BeginStaticPreview(new Rect(0f, 0f, (float) width, (float) height));
this.DoRenderPreview();
return this.m_PreviewUtility.EndStaticPreview();
}
}