TuxedoBerries.ScenePanel.Drawers.ScreenshotDrawer.MaxWidth C# (CSharp) 메소드

MaxWidth() 개인적인 메소드

private MaxWidth ( Texture texture ) : float
texture UnityEngine.Texture
리턴 float
        private float MaxWidth(Texture texture)
        {
            if (texture == null)
                return 0;

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