示例#1
0
    private void updateDisplayUV()
    {
        if (clipped)
        {
            Rect r = _localVisibleRect;
            if (gameObjectOriginInCenter)
            {
                r.x += _width / 2;
                r.y += _height / 2;
            }
            _displayUV = _originalUV.Intersect(r, manager.textureSize);
        }
        else
        {
            _displayUV = _originalUV;
        }

        if (!_suspendUpdates && manager)
        {
            manager.updateUV(this);
        }
    }
示例#2
0
 // This gets called by the manager just after the UV's get setup
 public void initializeSize()
 {
     setSize(width, height);
     manager.updateUV(this);
 }