BoundsExtensions.GetColliderBoundsPoints Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetColliderBoundsPoints(Collider, List<Vector3>, LayerMask, Transform) |
Method to get bounds from a single UnityEngine.Collider structure. |
| GetColliderBoundsPoints(GameObject, List<Vector3>, LayerMask, Transform) |
Method to get bounding box points using UnityEngine.Collider methods. |
GetColliderBoundsPoints(Collider, List<Vector3>, LayerMask, Transform)
Method to get bounds from a single UnityEngine.Collider structure.
public static void GetColliderBoundsPoints(UnityEngine.Collider collider, System.Collections.Generic.List<UnityEngine.Vector3> boundsPoints, UnityEngine.LayerMask ignoreLayers, UnityEngine.Transform relativeTo = default);
static member GetColliderBoundsPoints : UnityEngine.Collider * System.Collections.Generic.List<UnityEngine.Vector3> * UnityEngine.LayerMask * UnityEngine.Transform -> unit
Public Sub GetColliderBoundsPoints (collider As Collider, boundsPoints As List(Of Vector3), ignoreLayers As LayerMask, Optional relativeTo As Transform = Nothing)
Parameters
- collider
- UnityEngine.Collider
Target collider structure to examine.
- boundsPoints
- List<UnityEngine.Vector3>
The array reference that gets filled with 3D positions.
- ignoreLayers
- UnityEngine.LayerMask
The layer mask to simplify search.
- relativeTo
- UnityEngine.Transform
Compute bounds relative to this transform.
Applies to
GetColliderBoundsPoints(GameObject, List<Vector3>, LayerMask, Transform)
Method to get bounding box points using UnityEngine.Collider methods.
public static void GetColliderBoundsPoints(UnityEngine.GameObject target, System.Collections.Generic.List<UnityEngine.Vector3> boundsPoints, UnityEngine.LayerMask ignoreLayers, UnityEngine.Transform relativeTo = default);
static member GetColliderBoundsPoints : UnityEngine.GameObject * System.Collections.Generic.List<UnityEngine.Vector3> * UnityEngine.LayerMask * UnityEngine.Transform -> unit
Public Sub GetColliderBoundsPoints (target As GameObject, boundsPoints As List(Of Vector3), ignoreLayers As LayerMask, Optional relativeTo As Transform = Nothing)
Parameters
- target
- UnityEngine.GameObject
A game object that the bounding box bounds.
- boundsPoints
- List<UnityEngine.Vector3>
An array reference that gets filled with 3D positions.
- ignoreLayers
- UnityEngine.LayerMask
A layer mask used to simplify the search.
- relativeTo
- UnityEngine.Transform
Compute bounds relative to this transform.