기술 자료

Unity Engine

Unity Engine

RenderStaticPreview(int, int)

Creates a texture preview to override Editor.RenderStaticPreview. The current MeshPreview.mesh will be drawn.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.