Beispiel #1
0
        private void RenderOutOfRangeOverlay(Rect rect)
        {
            Color color = AnimEditor.outOfRangeColor;

            if (this.controlInterface.recording)
            {
                color *= AnimationMode.recordedPropertyColor;
            }
            else if (this.controlInterface.previewing)
            {
                color *= AnimationMode.animatedPropertyColor;
            }
            Vector2 timeRange = this.m_State.timeRange;

            AnimationWindowUtility.DrawOutOfRangeOverlay(rect, color, this.m_State.TimeToPixel(timeRange.x) + rect.xMin, this.m_State.TimeToPixel(timeRange.y) + rect.xMin);
        }