Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

Removed in version 5.6.2p1

BoxCollider2D.center

Switch to Manual
Obsolete public Vector2 center;

Description

The center point of the collider in local space.