protected override void OnCanvasHierarchyChanged() { Canvas c = this.m_Canvas; this.CacheCanvas(); if (c != this.m_Canvas) { GraphicRegistry.UnregisterGraphicForCanvas(c, this); GraphicRegistry.RegisterGraphicForCanvas(this.canvas, this); } }