BoundsExtensions.GetCornerAndMidPointPositions2D 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.
Gets all the corner points and mid points from a UnityEngine.Bounds structure, ignoring the z axis.
public static void GetCornerAndMidPointPositions2D(this UnityEngine.Bounds bounds, UnityEngine.Transform transform, ref UnityEngine.Vector3[] positions, MixedReality.Toolkit.Axis flattenAxis);
static member GetCornerAndMidPointPositions2D : UnityEngine.Bounds * UnityEngine.Transform * Vector3[] * MixedReality.Toolkit.Axis -> unit
<Extension()>
Public Sub GetCornerAndMidPointPositions2D (bounds As Bounds, transform As Transform, ByRef positions As Vector3(), flattenAxis As Axis)
Parameters
- bounds
- UnityEngine.Bounds
- transform
- UnityEngine.Transform
- positions
- UnityEngine.Vector3[]
- flattenAxis
- Axis
Remarks
Use LT, LB, RT, RB, LT_RT, RT_RB, RB_LB, and LB_LT values to index into the resulting array.