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