public override void OnInspectorGUI()

    {
        base.OnInspectorGUI();

        tk2dUIMultiStateToggleButton multiStateToggleBtn = (tk2dUIMultiStateToggleButton)target;



        serializedObj.Update();

        ListIterator("states", ref listVisibility);

        serializedObj.ApplyModifiedProperties();



        multiStateToggleBtn.activateOnPress = EditorGUILayout.Toggle("Activate On Press", multiStateToggleBtn.activateOnPress);



        BeginMessageGUI();

        methodBindingUtil.MethodBinding("On State Toggle", typeof(tk2dUIMultiStateToggleButton), multiStateToggleBtn.SendMessageTarget, ref multiStateToggleBtn.SendMessageOnStateToggleMethodName);

        EndMessageGUI();



        if (GUI.changed)

        {
            tk2dUtil.SetDirty(multiStateToggleBtn);
        }
    }
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        tk2dUIMultiStateToggleButton multiStateToggleBtn = (tk2dUIMultiStateToggleButton)target;

        serializedObj.Update();
        ListIterator("states", ref listVisibility);
        serializedObj.ApplyModifiedProperties();

        multiStateToggleBtn.activateOnPress = EditorGUILayout.Toggle("Activate On Press", multiStateToggleBtn.activateOnPress);


        if (GUI.changed)
        {
            EditorUtility.SetDirty(multiStateToggleBtn);
        }
    }