Version: 2018.4
LanguageEnglish
  • C#

PrimitiveBoundsHandle.SetSize

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

protected void SetSize(Vector3 size);

Parameters

size A Vector3 specifying how large the bounding volume is along all of its axes.

Description

Sets the current size of the bounding volume for this instance.

A negative value along any axis of the specified Vector3 will automatically be converted into a positive value. Disabled axes will automatically be converted to 0.

See Also: axes.