Version: 2021.1
언어: 한국어

MeshPreview

class in UnityEditor

매뉴얼로 전환

설명

Use this class to render an interactive preview of a mesh.

Use this class from an ObjectPreview or Editor.OnPreviewGUI to render an interactive mesh preview.

변수

meshThe Mesh to display in the preview space.

생성자

MeshPreviewCreates a new MeshPreview instance with a Mesh target.

Public 함수

DisposeReleases allocated resources associated with this object.
OnPreviewGUICall this from an Editor.OnPreviewGUI or ObjectPreview.OnPreviewGUI to draw a mesh preview.
OnPreviewSettingsCall this from Editor.OnPreviewSettings or ObjectPreview.OnPreviewSettings to draw additional settings related to the mesh preview.
RenderStaticPreviewCreates a texture preview to override Editor.RenderStaticPreview. The current mesh will be drawn.

정적 함수

GetInfoStringReturns a short summary of the Mesh attributes (ex, does this mesh contain positions, normals, tangents, etc...).