I do not know how to change the button texture ,thanks ,C# code
public sunlight SunLight;
public Texture temp;
public Texture Map ;
public GameObject test;
// Use this for initialization
void Start ()
{
//print(SunLight.temp );
}
// Update is called once per frame
void Update ()
{
}
void OnGUI()
{
GUI.Button(new Rect(100,200,100,100),Map);
}
void OnMouseEnter ()
{
test.guiTexture.enabled = true;
guiTexture.texture = temp;
//Map = temp;
print(“yyyyyyyyyyyyyyyyyyy”);
}
thanks