|  | |
| Scale | |
 Inheritance Hierarchy
Inheritance Hierarchy Syntax
Syntaxpublic class ScaleTransform : Transform
The ScaleTransform type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | ScaleTransform | Constructor | 
|  | ScaleTransform(Single) | Constructor | 
|  | ScaleTransform(Vector3) | Constructor | 
|  | ScaleTransform(Vector3, Vector3) | Constructor | 
|  | ScaleTransform(Single, Single, Single) | Constructor | 
|  | ScaleTransform(Single, Single, Single, Vector3) | Constructor | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | PivotPoint | Gets or sets a nullable Vector3 that sets a custom scale origin. For example, this can set to the center of the object's mesh (get by GetCenterPosition(Boolean, Boolean) method). PivotPoint is null by default. In this case all scales are done from the coordinate origin (0, 0, 0). | 
|  | ScaleX | Scale factor in the x direction. 1 by default. | 
|  | ScaleY | Scale factor in the y direction. 1 by default. | 
|  | ScaleZ | Scale factor in the z direction. 1 by default. | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | GetAverageScale | Returns an average scale that is calculated by averaging the ScaleX, ScaleY and ScaleZ. | 
|  | SetScale(Single) | Sets scale factor for all x, y and z scale factors to the specified scale and updates the transformation matrix. | 
|  | SetScale(Vector3) | Sets all 3 scale factors in one call and updates the transformation matrix. | 
|  | SetScale(Single, Single, Single) | Sets all 3 scale factors in one call and updates the transformation matrix. | 
|  | ToString | (Overrides ObjectToString) | 
|  | UpdateMatrix | Updates the Matrix4x4 that defines this transformation and is set to Value property. | 
 See Also
See Also