ドキュメント

Unity Engine

Unity Engine

RenderStaticPreview(int, int)

Creates a texture preview to override Editor.RenderStaticPreview. The current MeshPreview.mesh will be drawn.
読み終わるまでの所要時間 1 分最終更新 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.