Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RenderStaticPreview(int, int)

Creates a texture preview to override Editor.RenderStaticPreview. The current MeshPreview.mesh will be drawn.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public Texture2D RenderStaticPreview(int width, int height)

Parameters

width

The width to render the texture.

height

The height to render the texture.

Returns

Type

Description

Texture2DReturns a rendered texture of the current mesh with default settings.