Update Cryville.Common.

This commit is contained in:
2022-10-14 23:32:43 +08:00
parent d3cac8a28d
commit c8eee7ab3f
18 changed files with 497 additions and 47 deletions

View File

@@ -1,9 +1,16 @@
using UnityEngine;
namespace Cryville.Common.Unity.UI {
/// <summary>
/// A <see cref="DockLayoutGroup" /> that sets the occupied ratio of the docking element.
/// </summary>
public sealed class DockOccupiedRatioLayoutGroup : DockLayoutGroup {
[SerializeField]
[Tooltip("The occupied ratio of the docking element.")]
private float m_dockOccupiedRatio = 1;
/// <summary>
/// The occupied ratio of the docking element.
/// </summary>
public float DockOccupiedRatio {
get { return m_dockOccupiedRatio; }
set { base.SetProperty(ref m_dockOccupiedRatio, value); }