Legacy Documentation: Version 2018.1 (Go to current version)
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.

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