using UnityEngine; using UnityEngine.EventSystems; #if ENABLE_INPUT_SYSTEM using UnityEngine.InputSystem; using UnityEngine.InputSystem.UI; #endif namespace Michsky.MUIP { public class InputSystemChecker : MonoBehaviour { void Awake() { #if ENABLE_INPUT_SYSTEM && !ENABLE_LEGACY_INPUT_MANAGER InputSystemUIInputModule tempModule = gameObject.GetComponent(); if (tempModule == null) { Debug.LogError("[Modern UI Pack] Input System is enabled, but 'Input System UI Input Module' is missing. " + "Select the event system object, and click the 'Replace' button."); } #endif } } }