Search Unity

Shader.SetFloat not work

Discussion in 'VR' started by elpie89, Jun 7, 2018.

  1. elpie89

    elpie89

    Joined:
    Jun 30, 2014
    Posts:
    32
    Hi,
    I'm trying to set a uniform variable for one shader used for multiple materials.
    In unity editor the result is what I want.
    I set Shader.SetFloat("variable", value) and my result is acchieved.
    Inside the hololens nothing happen.
    Do you have any solutions or work around?
    Is this a bug?

    Thanks
     
  2. Benjams

    Benjams

    Unity Technologies

    Joined:
    Oct 27, 2017
    Posts:
    20
    Hello,
    Editor version and some sample code will help us investigate this issue. Do you see similar results with any other Shader.Set functions? Do you see the same results with Shader.SetGlobalFloat?