I would like to return an array showing all properties of a color (e.g. control.modulate). To mean "All Properties", I refer to those listed in the Color Entry of the Docs. I have tried the following code:
Contorl.modulate.get_property_list()but it gives an error
Invalid call. Nonexistent function 'get _ property _ list' in base 'Color'.
Thanks for your help in advance!
(My original motive is to Tween on the alpha value of a
Control.modulate to give a fading effect. I found in another post that it suffices to use
$Tween.interpolate_property(Control, "modulate:a", 1 , 0, 5)
to directly animate the alpha value instead of animating the whole modulate property by like doing
var final_color = Control.modulate
final_color.a = 0 #changing the alpha value
I wondered how could I get the string
"modulate:a"corresponding to the alpha property of the modulate and tried to see if I could print the property list of the modulate to find out the string
"modulate:a". This gives the current question after finding out that I cannot use
get_property_list() on a Color in general.)