21 lines
447 B
C#
21 lines
447 B
C#
#if INPUTSYSTEM_SUPPORT
|
|
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
|