http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Object_Scale&feed=atom&action=historyUnity Products:Amplify Shader Editor/Object Scale - Revision history2024-03-29T13:02:31ZRevision history for this page on the wikiMediaWiki 1.40.1http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Object_Scale&diff=403&oldid=prevAmplifyWiki: 1 revision imported2023-12-02T00:06:11Z<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 00:06, 2 December 2023</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>AmplifyWikihttp://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Object_Scale&diff=402&oldid=prevampwiki>Amplify RnD Rick at 12:28, 3 December 20192019-12-03T12:28:46Z<p></p>
<p><b>New page</b></p><div>[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]<br />
== Object Scale Node ==<br />
<br />
The Object Scale node returns the scale for the current game object. This scale value can be retrieved either from its [[Unity_Products:Amplify_Shader_Editor/Object_To_World_Matrix|Object To World]] transform matrix or [[Unity_Products:Amplify_Shader_Editor/World_To_Object_Matrix|World To Object]] transform matrix.<br><br />
<br />
{| class="wikitable" style="width: 100%;"<br />
|-<br />
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value<br />
|-<br />
| id="paramType" | Rotation Independent Scale<br />
| Defines if calculated scale value should be independent of object rotation.<br />
| True<br />
|}<br />
<br />
<br />
<br />
{| class="wikitable" style="width: 100%;"<br />
|- <br />
! style="width: 10%;" | Output Port !! Description !! style="width: 10%;" | Type<br />
|- <br />
| XYZ<br />
| Returns the current game object scale<br />
| Float3<br />
|- <br />
| X<br />
| Returns only the X component of the game object scale, more specifically [[Unity_Products:Amplify_Shader_Editor/Length|Length]]([[Unity_Products:Amplify_Shader_Editor/Object_To_World_Matrix|Object To World]][0].xyz)<br />
| Float<br />
|- <br />
| Y<br />
| Returns only the Y component of the game object scale, more specifically [[Unity_Products:Amplify_Shader_Editor/Length|Length]]([[Unity_Products:Amplify_Shader_Editor/Object_To_World_Matrix|Object To World]][1].xyz)<br />
| Float<br />
|- <br />
| Z<br />
| Returns only the Z component of the game object scale, more specifically [[Unity_Products:Amplify_Shader_Editor/Length|Length]]([[Unity_Products:Amplify_Shader_Editor/Object_To_World_Matrix|Object To World]][2].xyz)<br />
| Float<br />
|}<br />
<br />
<br><br />
'''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.<br />
<br />
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]<br />
[[Category:Nodes]][[Category:Vertex Data]]</div>ampwiki>Amplify RnD Rick