Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Bounds.SetMinMax

SetMinMax(min: Vector3, max: Vector3): void;
void SetMinMax(Vector3 min, Vector3 max);
def SetMinMax(min as Vector3, max as Vector3) as void

Description

Sets the bounds to the min and max value of the box.

Using this function is faster than assigning min and max separately.