Version: 2023.2

MeshPreview.RenderStaticPreview

切换到手册
public Texture2D RenderStaticPreview (int width, int height);

参数

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

返回

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

描述

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