UIUVRect.UIUVRect C# (CSharp) Метод

UIUVRect() публичный Метод

Automatically converts coordinates to UV space as specified by textureSize
public UIUVRect ( int x, int y, int width, int height, Vector2 textureSize ) : System
x int
y int
width int
height int
textureSize Vector2
Результат System
    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);
    }
UIUVRect