public override void OnInspectorGUI()
    {
        tk2dGuiUtility.LookLikeInspector();
        tk2dUIBaseItemControl baseButtonControl = (tk2dUIBaseItemControl)target;

        baseButtonControl.uiItem = tk2dUICustomEditorGUILayout.SceneObjectField("UIItem", baseButtonControl.uiItem, target);

        if (baseButtonControl.uiItem == null)
        {
            if (!hasBtnCheckBeenDone)
            {
                hasBtnCheckBeenDone      = true;
                baseButtonControl.uiItem = tk2dUIItemEditor.FindAppropriateButtonInHierarchy(baseButtonControl.gameObject);
                GUI.changed = true;
            }
        }
        else if (hasBtnCheckBeenDone)
        {
            hasBtnCheckBeenDone = false;
        }

        if (GUI.changed)
        {
            tk2dUtil.SetDirty(baseButtonControl);
        }
    }
    // Convenient non-essential wrappers
    protected void BeginMessageGUI()
    {
        tk2dUIBaseItemControl baseButtonControl    = (tk2dUIBaseItemControl)target;
        GameObject            newSendMessageTarget = methodBindingUtil.BeginMessageGUI(baseButtonControl.SendMessageTarget);

        if (newSendMessageTarget != baseButtonControl.SendMessageTarget)
        {
            baseButtonControl.SendMessageTarget = newSendMessageTarget;
            EditorUtility.SetDirty(baseButtonControl.uiItem);
        }
    }
    // Convenient non-essential wrappers
    protected void BeginMessageGUI()
    {
        tk2dUIBaseItemControl baseButtonControl = (tk2dUIBaseItemControl)target;

        methodBindingUtil.BeginMessageGUI(baseButtonControl, "sendMessageTarget", baseButtonControl?.uiItem);
    }