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);
}