示例#1
0
        protected override void UnregisterEvents()
        {
            base.UnregisterEvents();

            UnregisterBufferEvents();
            CanvasRebuildRegistry.UnregisterRebuildListener(this);
        }
示例#2
0
        protected override void RegisterEvents()
        {
            base.RegisterEvents();

            //Only if is a World Canvas
            if (!IsScreenCanvasMember())
            {
                CanvasRebuildRegistry.RegisterRebuildListener(this);
            }
            //We must stop drawing canvas for a frame (when switching between ScreenBuffer to RenderBuffer)
            //else if(SustainedPerformanceManager.IsWaitingRenderBuffer)
            //    RegisterBufferEvents();
        }