Пример #1
0
 /// <summary>
 /// Returns the ratio against the current target's max resolution
 /// </summary>
 /// <param name="width">width to utilize</param>
 /// <param name="height">height to utilize</param>
 /// <returns> retruns the width,height / maxTargetSize.xy ratio. </returns>
 public static Vector2 CalculateRatioAgainstMaxSize(int width, int height)
 {
     return(s_DefaultInstance.CalculateRatioAgainstMaxSize(new Vector2Int(width, height)));
 }
Пример #2
0
 /// <summary>
 /// Returns the ratio against the current target's max resolution
 /// </summary>
 /// <param name="width">width to utilize</param>
 /// <param name="height">height to utilize</param>
 /// <returns> retruns the width,height / maxTargetSize.xy ratio. </returns>
 public Vector2 CalculateRatioAgainstMaxSize(int width, int height)
 {
     return(m_RTHandleSystem.CalculateRatioAgainstMaxSize(new Vector2Int(width, height)));
 }