Bounds.Bounds

static function Bounds (center : Vector3, size : Vector3) : Bounds

Description

Creates new Bounds with a given center and total size. Bound extents will be half the given size.

JavaScript
// Create pillar bounding box centered at the origin

var bounds = Bounds (Vector3.zero, Vector3 (1, 2, 1));