2025-01-30 23:38:06 +01:00

25 lines
771 B
C#

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<InputSystemUIInputModule>();
if (tempModule == null)
{
Debug.LogError("<b>[Modern UI Pack]</b> Input System is enabled, but <b>'Input System UI Input Module'</b> is missing. " +
"Select the event system object, and click the <b>'Replace'</b> button.");
}
#endif
}
}
}