Files
2026-03-04 10:03:45 +08:00

45 lines
631 B
C#

using UnityEngine;
using UnityEngine.UI;
namespace Rewired.UI.ControlMapper
{
[AddComponentMenu("")]
public class UIGroup : MonoBehaviour
{
[SerializeField]
private Text _label;
[SerializeField]
private Transform _content;
public string labelText
{
get
{
if (!(_label != null))
{
return string.Empty;
}
return _label.text;
}
set
{
if (!(_label == null))
{
_label.text = value;
}
}
}
public Transform content => _content;
public void SetLabelActive(bool state)
{
if (!(_label == null))
{
_label.gameObject.SetActive(state);
}
}
}
}