protected override void UnregisterEvents() { base.UnregisterEvents(); UnregisterBufferEvents(); CanvasRebuildRegistry.UnregisterRebuildListener(this); }
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(); }