Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

GeometryUtility.CalculateBounds

public static Bounds CalculateBounds(Vector3[] positions, Matrix4x4 transform);

Description

Calculates a bounding box given an array of positions and a transformation matrix.