BoundsExtensions.RandomPointInside

Extension Method in BoundsExtensions

Declaration

public static Vector3 RandomPointInside(this Bounds bounds)

Description

Returns a random point inside the bounds.

Parameters

boundsThe bounds to get a random point from.

Returns

Vector3A random point inside the bounds.

Overload

Declaration

public static Vector3Int RandomPointInside(this BoundsInt bounds)

Description

Returns a random point inside the bounds.

Parameters

boundsThe bounds to get a random point from.

Returns

Vector3IntA random point inside the bounds.