UnityEditor.EditorGUILayout.CycleButton C# (CSharp) 메소드

CycleButton() 정적인 개인적인 메소드

static private CycleButton ( int selected, GUIContent options, GUIStyle style ) : int
selected int
options UnityEngine.GUIContent
style UnityEngine.GUIStyle
리턴 int
        internal static int CycleButton(int selected, GUIContent[] options, GUIStyle style)
        {
            if (GUILayout.Button(options[selected], style, new GUILayoutOption[0]))
            {
                selected++;
                if (selected >= options.Length)
                {
                    selected = 0;
                }
            }
            return selected;
        }