Bounds helpers.
More...
Inherits MonoBehaviour.
|
| 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.
|
◆ GetColliderBounds()
| Bounds MoreMountains.Tools.MMBoundsExtensions.GetColliderBounds |
( |
GameObject | theObject | ) |
|
|
static |
Gets collider bounds for an object (from Collider2D)
- Parameters
-
- Returns
◆ GetRendererBounds()
| Bounds MoreMountains.Tools.MMBoundsExtensions.GetRendererBounds |
( |
GameObject | theObject | ) |
|
|
static |
Gets bounds of a renderer.
- Parameters
-
- Returns
◆ MMRandomPointInBounds()
| Vector3 MoreMountains.Tools.MMBoundsExtensions.MMRandomPointInBounds |
( |
Bounds | bounds | ) |
|
|
static |
Returns a random point within the bounds set as parameter.
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/InventoryEngineStore/Assets/InventoryEngine/MMTools/Core/MMExtensions/MMBoundsExtensions.cs