Vector.UpdateAspectRatio C# (CSharp) Метод

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

public UpdateAspectRatio ( int width, int height ) : void
width int
height int
Результат void
    void UpdateAspectRatio(int width, int height)
    {
        var s = background.transform.localScale;
        s.x = s.y * width / height;
        background.transform.localScale = s;
    }