com.alicizax.unity.ui.exten.../Runtime/UXComponent/Navigation/UXNavigationLayerWatcher.cs
陈思海 dc8923564b 优化
非适配手柄 增加可选UX_NAVIGATION 宏
优化部分结构
2026-03-26 16:12:50 +08:00

21 lines
464 B
C#

#if INPUTSYSTEM_SUPPORT && UX_NAVIGATION
namespace UnityEngine.UI
{
[DisallowMultipleComponent]
internal sealed class UXNavigationLayerWatcher : MonoBehaviour
{
private UXNavigationRuntime _runtime;
internal void Initialize(UXNavigationRuntime runtime)
{
_runtime = runtime;
}
private void OnTransformChildrenChanged()
{
_runtime?.MarkDiscoveryDirty();
}
}
}
#endif