Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

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

Collider2D.offset

public Vector2 offset;

Description

The local offset of the collider geometry.

This offset can be used to shift the local origin of any 2D collider geometry.