Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity_scale removed

Discussion in 'Unity 5 Pre-order Beta' started by Project-Mysh, Oct 30, 2014.

  1. Project-Mysh

    Project-Mysh

    Joined:
    Nov 3, 2013
    Posts:
    223
    When i compile my unity4 windbending shader im getting this replacement:

    Code (CSharp):
    1. // Upgrade NOTE: unity_Scale shader variable was removed; replaced 'unity_Scale' with 'float4(1,1,1,1)'
    2.  
    3. // Upgrade NOTE: unity_Scale shader variable was removed; replaced 'unity_Scale.w' with '1.0'
    How can I get this property in unity 5? Automatically replace it with a "float4(1,1,1,1) is a very weird solution.... it just breaks my shader.