public UIUVRect(int x, int y, int width, int height, Vector2 textureSize) { _originalCoordinates.x = x; _originalCoordinates.y = y; _originalWidth = width; lowerLeftUV = new Vector2(x / textureSize.x, 1.0f - ((y + height) / textureSize.y)); uvDimensions = new Vector2(width / textureSize.x, height / textureSize.y); }