+3
Completed

A check box for hiding shader properties from the inspector

Eastshade Studios 10 years ago updated by Freya Holmér (Developer) 10 years ago 5
I'd very much fancy a check box for hiding a property from the inspector. I find myself wanting properties that I'd like accessible through script, but not through the inspector. Here are some example use cases when I'd want this.
-If I were making a global cubemap manager I wouldn't want cubemap slots in the inspector, but rather script to control it
-If I had some gameplay feature that changes materials. Like things get desaturated when they are near the player. I'd want some hidden float for shaders that may come near the player.
-If you had a weather system that could effect spec, gloss, and darken the diffuse a bit. I'd want those properties hidden.

Answer

Answer
Completed
This is now implemented in 1.15 :)
Under review
Should be simple enough!
It would be extremely helpful if these properties worked with Shader.SetGlobalFloat() and Shader.SetGlobalColor(). This would work if the properties did not exist in the properties block of the shader code.
You can already make global variables by right-clicking the property node and converting it to global :)
I'd very much like this functionality as well. I've thought the exact same thing many times.
Answer
Completed
This is now implemented in 1.15 :)