Tilt Five Unity SDK 1.4.2
Loading...
Searching...
No Matches
TiltFive.UniformScaleTransform Class Reference

Enforces uniform scaling by setting the x, y, and z scale components of the associated transform to be equal. More...

Inheritance diagram for TiltFive.UniformScaleTransform:
TiltFive.GameBoard

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.

Detailed Description

Enforces uniform scaling by setting the x, y, and z scale components of the associated transform to be equal.

Member Function Documentation

◆ Awake()

void TiltFive.UniformScaleTransform.Awake ( )
inline

◆ UnifyScale()

void TiltFive.UniformScaleTransform.UnifyScale ( )
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].

Property Documentation

◆ localScale

float TiltFive.UniformScaleTransform.localScale
getset

The size of the object as a single float value, rather than a scale vector.

◆ position

Vector3 TiltFive.UniformScaleTransform.position
getset

The position vector for the associated transform.

◆ rotation

Quaternion TiltFive.UniformScaleTransform.rotation
getset

The rotation vector for the associated transform.


The documentation for this class was generated from the following file: