Version: 2022.3

MeshGenerationOptions

enumeration

切换到手册

描述

Options for generating meshes.

Use this enum with XRMeshSubsystem.GenerateMeshAsync to tell Unity how to handle data from the mesh provider.

The mesh provider can supply a transform along with the mesh data. When this happens, the value of MeshGenerationOptions determines what Unity does with the supplied transform. If ConsumeTransform is set, Unity ignores the supplied transform. Otherwise, Unity applies the supplied transform to the vertices of the mesh, and rebakes the physics mesh. These transformation and rebaking operations can be CPU-intensive; if you do not need to perform these operations, you should set ConsumeTransform.

If the mesh provider does not supply a transform, the value of MeshGenerationOptions has no effect.

See Also: XRMeshSubsystem.GenerateMeshAsync, MeshGenerationResult

变量

NoneNo options are specified.
ConsumeTransformIndicates you plan to consume the resulting mesh's transform.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961