Language
Edit

BoundsExtensions.GetFacePositions(Bounds, Transform, Vector3[]) Method

Definition

Get the 3D positions of faces from a UnityEngine.Bounds structure.

public static void GetFacePositions(this UnityEngine.Bounds bounds, UnityEngine.Transform transform, ref UnityEngine.Vector3[] positions);
static member GetFacePositions : UnityEngine.Bounds * UnityEngine.Transform * Vector3[] -> unit
<Extension()>
Public Sub GetFacePositions (bounds As Bounds, transform As Transform, ByRef positions As Vector3())

Parameters

bounds
UnityEngine.Bounds

The bounds structure in local space.

transform
UnityEngine.Transform

The transform belonging to the bounds.

positions
UnityEngine.Vector3[]

The array will hold the 3D positions of faces on the UnityEngine.Bounds object.

Remarks

The 3D positions are stored in UnityEngine.Vector3 array at the TOP, BOT, LFT, RHT, FWD, and BCK indices.

Applies to