FairyGUI.TextField.Update C# (CSharp) 메소드

Update() 공개 메소드

public Update ( UpdateContext context ) : void
context UpdateContext
리턴 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);
        }