Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Bounds.Bounds

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

Description

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

	// Create pillar bounding box centered at the origin

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