Version: 2020.1
LanguageEnglish
  • C#

SurfaceData.trianglesPerCubicMeter

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.

Did you find this page useful? Please give it a rating: