
+3
Fertiggestellt
A check box for hiding shader properties from the inspector
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.
-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.
Antwort

0
Antwort
Fertiggestellt
Freya Holmér (Developer) vor 10 Jahren
This is now implemented in 1.15 :)

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.
Customer support service by UserEcho