BoundsExtensions.GetCornerPositions 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 |
|---|---|
| GetCornerPositions(Bounds, Vector3[]) |
Gets all the corner points a UnityEngine.Bounds structure. |
| GetCornerPositions(Bounds, Transform, Vector3[]) |
Gets all the corner points of a UnityEngine.Bounds structure. |
GetCornerPositions(Bounds, Vector3[])
Gets all the corner points a UnityEngine.Bounds structure.
public static void GetCornerPositions(this UnityEngine.Bounds bounds, ref UnityEngine.Vector3[] positions);
static member GetCornerPositions : UnityEngine.Bounds * Vector3[] -> unit
<Extension()>
Public Sub GetCornerPositions (bounds As Bounds, ByRef positions As Vector3())
Parameters
- bounds
- UnityEngine.Bounds
- positions
- UnityEngine.Vector3[]
Remarks
Use LBF, LBB, LTF, LTB, RBF, RBB, RTF, and RTB values to index into the resulting array.
Applies to
GetCornerPositions(Bounds, Transform, Vector3[])
Gets all the corner points of a UnityEngine.Bounds structure.
public static void GetCornerPositions(this UnityEngine.Bounds bounds, UnityEngine.Transform transform, ref UnityEngine.Vector3[] positions);
static member GetCornerPositions : UnityEngine.Bounds * UnityEngine.Transform * Vector3[] -> unit
<Extension()>
Public Sub GetCornerPositions (bounds As Bounds, transform As Transform, ByRef positions As Vector3())
Parameters
- bounds
- UnityEngine.Bounds
Input bounds, in local space
- transform
- UnityEngine.Transform
Local to world transform
- positions
- UnityEngine.Vector3[]
Output corner positions
Remarks
The resulting 3D positions will be in world space by transforming input bounds using the given transform.
Use LBF, LBB, LTF, LTB, RBF, RBB, RTF, and RTB values to index into the resulting array.