Version: 2019.1

SurfaceData.trianglesPerCubicMeter

Switch to Manual
public float trianglesPerCubicMeter ;

Description

This value controls the basic resolution of baked mesh data and is returned with the SurfaceDataReadyDelegate. The device will deliver up to this number of triangles per cubic meter.

Computation time for RequestMeshAsync calls and memory overhead for generated data scale with the requested triangle density. Values greater than 1000 will map very closely to the real world but will be very heavy with large bake time latencies. Values less than 100 will be very light and relatively quick to bake but will smooth over many important features in the real world. Values greater than 500 are a good blend of overhead and fidelity but use whatever values make sense for your application.

Note that the system will do its best to deliver mesh data at the requested resolution but may round the value down to reduce cost.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961