Пример #1
0
    /// <summary>
    /// 鼠标点击,则显示gizmo
    /// </summary>
    void OnMouseDown()
    {
        if (m_gizmoController == null)
        {
            return;
        }

        //if (m_gizmoController.IsOverAxis())
        //    return;

        m_gizmoController.SetSelectedObject(transform);

        if (m_gizmoController.IsHidden())
        {
            m_gizmoController.Show(GIZMO_MODE.TRANSLATE);
        }
    }
Пример #2
0
    }//OnMouseEnter

    void OnMouseDown()
    {
        if (GC == null)
        {
            return;
        }

        if (GC.IsOverAxis())
        {
            return;
        }

        GC.SetSelectedObject(transform);

        if (GC.IsHidden())
        {
            GC.Show(GIZMO_MODE.TRANSLATE);
        }
    }//OnMouseDown