コード例 #1
0
    public void ProfileButtonSetting()
    {
        if (!EventSystem.current.IsPointerOverGameObject())
        {
            for (int i = 0; i < buttonUIScript.buttonIconManager.Length; i++)
            {
                if (buttonUIScript.buttonIconManager[i].iconName == "RotateStepIcon")
                {
                    buttonRotateStepIcon = buttonUIScript.buttonIconManager[i].iconSprite;
                }
            }

            for (int i = 0; i < rotateAngleData.Length; i++)
            {
                GameObject rotateStepButton = Instantiate(Resources.Load("ButtonTemplate") as GameObject);

                buttonUIScript.AddButtonArgsInteger(rotateStepButton, buttonRotateStepIcon, rotateAngleData[i].rotateName, ButtonRotateStepObject, i);
            }
        }
    }