Version: 2021.2
言語: 日本語

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.

Static 関数

GetInfoStringReturns a short summary of the Mesh attributes (ex, does this mesh contain positions, normals, tangents, etc...).
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961