MeshPreview.RenderStaticPreview

Declaration

public Texture2D RenderStaticPreview(int width, int height);

Parameters

width The width to render the texture.
height The height to render the texture.

Returns

Texture2D Returns a rendered texture of the current mesh with default settings.

Description

Creates a texture preview to override Editor.RenderStaticPreview. The current mesh will be drawn.


Did you find this page useful? Please give it a rating: