Legacy Documentation: Version 2017.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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答