com.alicizax.unity.ui.exten.../Runtime/UXComponent/Navigation/UXNavigationLayerWatcher.cs

21 lines
464 B
C#
Raw Normal View History

#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