UnityEngine.UI.CanvasScaler.Handle C# (CSharp) Method

Handle() protected method

Method that handles calculations of canvas scaling.

protected Handle ( ) : void
return void
        protected virtual void Handle()
        {
            if ((this.m_Canvas != null) && this.m_Canvas.isRootCanvas)
            {
                if (this.m_Canvas.renderMode == RenderMode.WorldSpace)
                {
                    this.HandleWorldCanvas();
                }
                else
                {
                    switch (this.m_UiScaleMode)
                    {
                        case ScaleMode.ConstantPixelSize:
                            this.HandleConstantPixelSize();
                            break;

                        case ScaleMode.ScaleWithScreenSize:
                            this.HandleScaleWithScreenSize();
                            break;

                        case ScaleMode.ConstantPhysicalSize:
                            this.HandleConstantPhysicalSize();
                            break;
                    }
                }
            }
        }