|
Unity SDK Docs 1.5.0-beta.6
|
Enforces uniform scaling by setting the x, y, and z scale components of the associated transform to be equal. More...
Public Member Functions | |
| void | Awake () |
Protected Member Functions | |
| void | UnifyScale () |
| Synchronizes the component values of the game object's local scale vector (e.g. [1,2,3] becomes [3,3,3]). | |
Properties | |
| float | localScale [get, set] |
| The size of the object as a single float value, rather than a scale vector. | |
| Vector3 | position [get, set] |
| The position vector for the associated transform. | |
| Quaternion | rotation [get, set] |
| The rotation vector for the associated transform. | |
Enforces uniform scaling by setting the x, y, and z scale components of the associated transform to be equal.
Definition at line 26 of file UniformScaleTransform.cs.
|
inline |
Definition at line 106 of file UniformScaleTransform.cs.
|
inlineprotected |
Synchronizes the component values of the game object's local scale vector (e.g. [1,2,3] becomes [3,3,3]).
The vector component with the most extreme deviation from the previous uniform scale vector will be selected. If the previous scale was [2,2,2] and the current scale is [5, 15, 50] then the result will be [50, 50, 50]. This also applies for negative values: [5, -20, 10] would result in [-20,-20,-20].
Definition at line 81 of file UniformScaleTransform.cs.
|
getset |
The size of the object as a single float value, rather than a scale vector.
Definition at line 33 of file UniformScaleTransform.cs.
|
getset |
The position vector for the associated transform.
Definition at line 46 of file UniformScaleTransform.cs.
|
getset |
The rotation vector for the associated transform.
Definition at line 55 of file UniformScaleTransform.cs.