private void Update()
 {
     if (m_rteCamera.CommandBufferOverride == null)
     {
         m_rteCamera.RefreshCommandBuffer();
     }
 }
Esempio n. 2
0
        protected override void Start()
        {
            base.Start();

            if (m_source == null)
            {
                m_source = GetComponent <AudioSource>();
            }

            if (m_source == null)
            {
                Debug.LogError("Set AudioSource");
            }

            if (m_max)
            {
                m_gizmo                 = gameObject.AddComponent <AudioSourceGizmo>();
                m_gizmo.LineColor       = LineColor;
                m_gizmo.HandlesColor    = HandlesColor;
                m_gizmo.SelectionColor  = SelectionColor;
                m_gizmo.SelectionMargin = SelectionMargin;
                m_gizmo.EnableUndo      = EnableUndo;
                m_gizmo.m_max           = !m_max;
                m_gizmo.Window          = Window;
            }

            RTECamera.RefreshCommandBuffer();
        }
 public void DoSceneGizmo()
 {
     if (m_camera != null)
     {
         m_camera.enabled = true;
         m_rteGizmoCamera.RefreshCommandBuffer();
     }
 }
        protected virtual void OnEnable()
        {
            m_rteCamera       = Window.Camera.gameObject.AddComponent <RTECamera>();
            m_rteCamera.Event = CameraEvent.AfterForwardAlpha;
            m_rteCamera.CommandBufferRefresh += OnCommandBufferRefresh;

            Rebuild();
            m_rteCamera.RefreshCommandBuffer();
        }
Esempio n. 5
0
 protected bool TryRefreshCommandBuffer()
 {
     if (Model == null && RTECamera != null)
     {
         RTECamera.RefreshCommandBuffer();
         return(true);
     }
     return(false);
 }
        private void Init()
        {
            m_rteCamera       = Window.Camera.gameObject.AddComponent <RTECamera>();
            m_rteCamera.Event = CameraEvent.AfterForwardAlpha;
            m_rteCamera.CommandBufferRefresh += OnCommandBufferRefresh;

            Rebuild();
            m_rteCamera.RefreshCommandBuffer();
        }
Esempio n. 7
0
        public void UpdateGraphics(Vector2 viewportSize, Vector2 contentSize, Vector2 normalizedOffset, Vector2 normalizedSize, Vector2 interval)
        {
            m_updateGraphicsArgs.ViewportSize     = viewportSize;
            m_updateGraphicsArgs.ContentSize      = contentSize;
            m_updateGraphicsArgs.NormalizedOffset = normalizedOffset;
            m_updateGraphicsArgs.NormalizedSize   = normalizedSize;
            m_updateGraphicsArgs.Interval         = interval;

            m_rteCamera.RefreshCommandBuffer();
        }
        private void UpdateKeyframes(int index, float rowHeight, float aspect, Vector3 offset, float visibleColumns, Vector3 keyframeScale)
        {
            m_updateKeyframeArgs.Index           = index;
            m_updateKeyframeArgs.RowHeight       = rowHeight;
            m_updateKeyframeArgs.Aspect          = aspect;
            m_updateKeyframeArgs.Offset          = offset;
            m_updateKeyframeArgs.VisibileColumns = visibleColumns;
            m_updateKeyframeArgs.KeyframeScale   = keyframeScale;

            m_rteCamera.RefreshCommandBuffer();
        }