文档

Unity Engine

Download Unity

Unity Engine

center

The center point of the collider in local space.
阅读时间1 分钟最后更新于 2 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
警告
Removed. CircleCollider2D.center has been obsolete. Use CircleCollider2D.offset instead
Upgrade to offset
public Vector2 center { get; set; }