[SOLVED] How does the "alpha" property works in GUI?

Hello guys! Can you help me? GUI nodes have a property “Alpha” and this property can be controlled via the API

But at the same time, I can’t animate this property using go.animate like this

	gui.animate(
	popup_fade, 
	"alpha",
	ALPHA_VALUE,
	gui.EASING_INCUBIC, 
	0.1)

I should use the “color.w” property instead. So I am wondering if they are the same? If I set the “alpha” to zero by gui.set_alpha(node, 0) and then will animate the “color.w” will it affect the same property?

In other words, is gui.set_alpha() just a shortcut for modifying the W component of the node’s color property?

Yes, exactly as you said. The actual property is color.w, and set_alpha is just a shortcut for color.w.

2 Likes