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.

Bounds.Contains

public bool Contains(Vector3 point);

Description

Is point contained in the bounding box?

If the point passed into Contains is inside the bounding box a value of True is returned.

Note: If Bounds.extents contains a negative value in any coordinate then Bounds.Contains will always return False.