Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


vertexDistance

Controls the minimum distance allowed between generated vertices.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float vertexDistance { get; set; }

Remarks

Controls the minimum distance allowed between generated vertices. Any vertices closer than or equal to this distance will be removed. Setting too high a distance can result in nothing being generated.