Unity Products:Amplify Shader Editor/Object Scale

From Amplify Creations Wiki
Jump to: navigation, search

Back to Node List

Object Scale Node

The Object Scale node returns the scale for the current game object. This scale value can be retrieved either from its Object To World transform matrix or World To Object transform matrix.

Node Parameter Description Default Value
Rotation Independent Scale Defines if calculated scale value should be independent of object rotation. True


Output Port Description Type
XYZ Returns the current game object scale Float3
X Returns only the X component of the game object scale, more specifically Length(Object To World[0].xyz) Float
Y Returns only the Y component of the game object scale, more specifically Length(Object To World[1].xyz) Float
Z Returns only the Z component of the game object scale, more specifically Length(Object To World[2].xyz) Float


NOTE: Rotation Independent Scale option should only be used if the object has a non-uniform scale ( different scale values for each axis ) as it's involves heavier calculations.

Back to Node List