Search Unity

Displaying Shader Properties (Range-Sliders) in Inspector as Values

Discussion in 'Shaders' started by Andreas Scholl, Jan 24, 2012.

  1. Andreas Scholl

    Andreas Scholl

    Joined:
    Oct 10, 2011
    Posts:
    4
    Is there a way to display a ranged Value (i.e. Shininess) from a Shader Property as a numeric value in the inspector? The most comfortable way would be to have the slider and next to the slider an input field containing the float value. If you view other objects (i.e. a light) in the inspector you can see ranged values that are displayed this way.

    The only way i found to display the value of a ranged shader property is to switch to "debug" mode and click through the properties.
     
  2. Martin-Kraus

    Martin-Kraus

    Joined:
    Feb 18, 2011
    Posts:
    617
    You can change the "Property" definition from "Range" to "Float". (Just if you don't know yet: you can also manipulate "Float" values similar to a slider by dragging.)