Inventory Engine v4.2
Loading...
Searching...
No Matches
MoreMountains.Tools.MMBoundsExtensions Class Reference

Bounds helpers. More...

Inherits MonoBehaviour.

Static Public Member Functions

static Vector3 MMRandomPointInBounds (Bounds bounds)
 Returns a random point within the bounds set as parameter.
static Bounds GetColliderBounds (GameObject theObject)
 Gets collider bounds for an object (from Collider2D)
static Bounds GetRendererBounds (GameObject theObject)
 Gets bounds of a renderer.

Detailed Description

Bounds helpers.

Member Function Documentation

◆ GetColliderBounds()

Bounds MoreMountains.Tools.MMBoundsExtensions.GetColliderBounds ( GameObject theObject)
static

Gets collider bounds for an object (from Collider2D)

Parameters
theObject
Returns

◆ GetRendererBounds()

Bounds MoreMountains.Tools.MMBoundsExtensions.GetRendererBounds ( GameObject theObject)
static

Gets bounds of a renderer.

Parameters
theObject
Returns

◆ MMRandomPointInBounds()

Vector3 MoreMountains.Tools.MMBoundsExtensions.MMRandomPointInBounds ( Bounds bounds)
static

Returns a random point within the bounds set as parameter.

Parameters
bounds
Returns

The documentation for this class was generated from the following file: