文档

Unity Engine

Unity Engine

useAttachedTriggers

Can be used to select whether any Collider2D attached to this Rigidbody2D (that are configured as a trigger) are used to detect contacts.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool useAttachedTriggers { readonly get; set; }

Remarks

This is ignored if Rigidbody2D.SlideMovement.selectedCollider is selected.
Additional Resources: Rigidbody2D.Slide and Rigidbody2D.SlideResults.