Can't use Color on Image component.
Looked for solution but no luck. How can i use color on Image?
Here is the sample code that should work
public void Locked(GameObject go)
{
Image ima = go.GetComponent<Image>();
// Below line throws 'Image' does not contain a definition for 'color'
ima.color = new Color(200,200,200);
}
using UnityEngine.UI;
notusing UnityEngine.UIElements;
... – derHugo