TuxedoBerries.ScenePanel.Drawers.ScreenshotDrawer.MaxHeight C# (CSharp) Метод

MaxHeight() приватный Метод

private MaxHeight ( Texture texture ) : float
texture UnityEngine.Texture
Результат float
        private float MaxHeight(Texture texture)
        {
            if (texture == null)
                return 0;

            float scale = 128f / (Mathf.Max(texture.width, texture.height) * 1f);
            return scale * texture.height;
        }