FairyGUI.Image.UpdateTexture C# (CSharp) Method

UpdateTexture() protected method

protected UpdateTexture ( NTexture value ) : void
value NTexture
return void
        protected virtual void UpdateTexture(NTexture value)
        {
            if (value == _texture)
                return;

            _requireUpdateMesh = true;
            _texture = value;
            if (_contentRect.width == 0)
                SetNativeSize();
            graphics.texture = _texture;
            InvalidateBatchingState();
        }