FairyGUI.TextField.Update C# (CSharp) Method

Update() public method

public Update ( UpdateContext context ) : void
context UpdateContext
return void
        public override void Update(UpdateContext context)
        {
            if (_font != null)
            {
                if (_font.keepCrisp && _renderScale != UIContentScaler.scaleFactor)
                    _textChanged = true;

                if (_font.mainTexture != graphics.texture)
                {
                    if (!_textChanged)
                        RequestText();
                    graphics.texture = _font.mainTexture;
                    _requireUpdateMesh = true;
                }

                if (_textChanged)
                    BuildLines();

                if (_requireUpdateMesh)
                    BuildMesh();
            }

            base.Update(context);
        }