Update Cryville.Common.
This commit is contained in:
@@ -2,9 +2,16 @@
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Cryville.Common.Unity.UI {
|
||||
/// <summary>
|
||||
/// Fits the length of an axis of an element with respect to the children count and the shared aspect ratio.
|
||||
/// </summary>
|
||||
public class LayoutAspectRatioFitter : MonoBehaviour {
|
||||
[SerializeField]
|
||||
[Tooltip("The aspect ratio per element.")]
|
||||
private float m_aspectRatioPerElement = 1;
|
||||
/// <summary>
|
||||
/// The aspect ratio per element.
|
||||
/// </summary>
|
||||
public float AspectRatioPerElement {
|
||||
get { return m_aspectRatioPerElement; }
|
||||
set { m_aspectRatioPerElement = value; }
|
||||
|
Reference in New Issue
Block a user