i changed color of sprite still not changed
script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class colorr : MonoBehaviour {
void Start () {
GetComponent ().material.color = Color.blue;
}
}
i changed color of sprite still not changed
script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class colorr : MonoBehaviour {
void Start () {
GetComponent ().material.color = Color.blue;
}
}
Never set the Material.Color directly, set the color of the Image component instead