コード例 #1
0
    public void RemoveButtonColor(Event e)
    {
        // GUI lookup example
        Button button = GuiLookup.GetComponent("button1") as Button;

        if (null != button)
        {
            button.Color = Color.white;
        }
    }
コード例 #2
0
    public void PaintButtonGreen(Event e)
    {
        // GUI lookup example
        Button button = GuiLookup.GetComponent("button1") as Button;

        if (null != button)
        {
            button.Color = Color.green;
        }
    }