Exemple #1
0
    private void Update()
    {
        if (m_isDirty)
        {
            // Update the graph points
            GetKeyframes();
            UpdateGraph();

            // Update the axis bars
            float canvasWidth  = graphCanvas.GetComponent <RectTransform>().sizeDelta.x;
            float canvasHeight = graphCanvas.GetComponent <RectTransform>().sizeDelta.y;
            m_axisTimelineBar.draw(canvasWidth, HORI_MULT, canvasHeight, VERT_MULT, graphCanvas.m_isCanvasResized);
            //m_axisPositionBar.draw(canvasWidth, HORI_MULT, canvasHeight, VERT_MULT, graphCanvas.m_isCanvasResized);

            m_isDirty = false;
        }
    }