Function to set arbitrary properties on GUI nodes

In game object land, we have go.set(). It would be useful to have a similar function for GUI nodes instead of having to use the gui.set_* family of functions.

This is especially useful for setting opacity. It’s currently tedious to set opacity while preserving the base color. Something like gui.set(node, hash("color.w"), 0.5) would be very useful. I tried using gui.animate() to do that, but I stumbled over this bug.

4 Likes