脚本API UnityEngine UnityEditor Unity OtherPhysicsScene2D.OverlapColliderpublic static int OverlapCollider (Collider2D collider, Collider2D[] results, int layerMask= Physics2D.DefaultRaycastLayers); public static int OverlapCollider (Collider2D collider, ContactFilter2D contactFilter, Collider2D[] results);...
脚本API UnityEngine UnityEditor Unity Other Physics2D.OverlapCollider public static int OverlapCollider (Collider2D collider, ContactFilter2D contactFilter, Collider2D[] results); 参数 collider 定义用于查询其他碰撞体重叠的区域的碰撞体。 contactFilter 接触筛选器,用于以不同方式筛选结果,例如按层遮罩、Z 深...
unity3d.com Version: 2023.2 语言: 中文 脚本API UnityEngine UnityEditor Unity OtherPhysics2D.OverlapCollider public static int OverlapCollider (Collider2D collider, List<Collider2D> results); 参数 collider 定义用于查询其他碰撞体重叠的区域的碰撞体。 results 用于接收结果的列表。
Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers.
UnityEngine UnityEditor Unity Other Collider2D.OverlapCollider public int OverlapCollider (ContactFilter2D contactFilter, Collider2D[] results); Parámetros contactFilter The contact filter used to filter the results differently, such as by layer mask, Z depth. Note that normal angle is not used ...
public static intOverlapCollider(Collider2Dcollider,ContactFilter2DcontactFilter, Collider2D[]results); 参数 collider定义用于查询其他碰撞体重叠的区域的碰撞体。 results用于接收结果的数组。该数组的大小决定可返回的结果的最大数量。 layerMask筛选器,用于检查仅在指定层上的对象。
UnityEditor Unity Unity.IO.LowLevel UnityEditor.Profiling.Memory Other Rigidbody2D.OverlapCollider public int OverlapCollider (ContactFilter2D contactFilter, out Collider2D[] results); Parámetros contactFilter The contact filter used to filter the results differently, such as by layer mask, Z depth....
UnityEngine UnityEditor Unity Unity.IO.LowLevel UnityEditor.Profiling.Memory Other Rigidbody2D.OverlapCollider public int OverlapCollider (ContactFilter2D contactFilter, out Collider2D[] results); 파라미터 contactFilter The contact filter used to filter the results differently, such as by layer...
UnityEditor.Profiling.Memory Other PhysicsScene2D.OverlapCollider public static int OverlapCollider (Collider2D collider, Collider2D[] results, int layerMask= Physics2D.DefaultRaycastLayers); public static int OverlapCollider (Collider2D collider, ContactFilter2D contactFilter, Collider2D[] results); パ...
Collider2D.OverlapCollider public intOverlapCollider(ContactFilter2DcontactFilter, Collider2D[]results); パラメーター contactFilterThe contact filter used to filter the results differently, such as by layer mask, Z depth. Note that normal angle is not used for overlap testing. ...