Пример #1
0
    public void EditEulerKey()
    {
        float x = float.Parse(m_xangleInputField.text);
        float y = float.Parse(m_yangleInputField.text);
        float z = float.Parse(m_zangleInputField.text);

        m_curveController.EditRotationKey(m_selectedPoint, Quaternion.Euler(x, y, z));
    }
Пример #2
0
    private void OnRotationGizmoPostUpdateEnd(RTG.Gizmo gizmo)
    {
        if (m_selectedPoint == null)
        {
            return;
        }
        // Update the axes
        m_objectTranslationGizmo.Gizmo.SetEnabled(false);
        m_objectTranslationGizmo.SetTargetObject(m_selectedPoint);
        m_objectTranslationGizmo.Gizmo.SetEnabled(true);

        if (m_selectedPoint.CompareTag("KeyPoint"))
        {
            m_curveController.EditRotationKey(m_selectedPoint, m_selectedPoint.transform.rotation);
        }
    }