LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

CompositeCollider2D.vertexDistance

Switch to Manual
public float vertexDistance;

Description

Controls the minimum distance allowed between generated vertices.

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.