- Home /
Question by
jayesh4520 · Jan 01, 2018 at 10:10 AM ·
2d2d gamecolorsprite renderer
i changed color of sprite still not changed
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; } }
capture.png
(2.2 kB)
Comment
Best Answer
Answer by dev-waqas · Jan 01, 2018 at 11:42 AM
You will need to set Read/Write enabled in advanced Import settings.
capture.png
(33.3 kB)
Answer by jayesh4520 · Jan 02, 2018 at 01:37 PM
WHERE IS ADVAMCED SETTING @dev-waqas
Click on the image in your project browser. (Not scene browser).
Answer by OneCept-Games · Jan 02, 2018 at 03:40 PM
Never set the Material.Color directly, set the color of the Image component instead