基础内容
必要插件安装 缓动曲线和动画基础 ElementFolder,Track与其次级模块,PathNode重构
This commit is contained in:
25
Assets/Modern UI Pack/Scripts/Demo/InputSystemChecker.cs
Normal file
25
Assets/Modern UI Pack/Scripts/Demo/InputSystemChecker.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user