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

SetScaleFactor() protected method

Sets the scale factor on the canvas.

protected SetScaleFactor ( float scaleFactor ) : void
scaleFactor float The scale factor to use.
return void
        protected void SetScaleFactor(float scaleFactor)
        {
            if (scaleFactor != this.m_PrevScaleFactor)
            {
                this.m_Canvas.scaleFactor = scaleFactor;
                this.m_PrevScaleFactor = scaleFactor;
            }
        }