文档

Unity Engine

Unity Engine

SetSize(Vector3)

Sets the current size of the bounding volume for this instance.
阅读时间1 分钟最后更新于 1 个月前

Definition

protected void SetSize(Vector3 size)

Parameters

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

Remarks

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
.
Additional Resources: PrimitiveBoundsHandle.axes.