What is the name of .color propert for new Unity UI Image?

Before new UI I’ve been creating my own UI using SpiteRenderer and sprites and have used GoKit to tween color, size and other stuff of the UI.
Since I’ve finished old project I’ve decided to start using new UI on next project and I’m having difficulties to get the name of the color property so i can pass it to .colorProp of the GoTweenConfig() of GoKit. I’ve tried to see the declaration of the Image class but I can’t seem to find Color property anywhere there.

How can i get what is the name of that property variable?

Thank you in advance!

Hey, Darkwing. I had the same problem earlier today. You need to pass the uGUI Image to the tween.

Image uiImage = gameObject.GetComponent<Image>();
    
GoTweenConfig colorConfig = new GoTweenConfig().colorProp( "color", new Vector4( 1, 0, 0, 1) ).setEaseType(GoEaseType.SineIn);
GoTween colorTween = new GoTween(uiImage, 1.0f, colorConfig);
    
Go.addTween( colorTween );

Make sure you’ve imported UI scripts via using UnityEngine.UI; at the top of your class.

GetComponent<UnityEngine.UI.Image>().color

It inherits it from Unity - Scripting API: Graphic