Passion & UI

This commit is contained in:
SoulliesOfficial
2026-06-12 17:11:39 -04:00
parent 7bc1e1722c
commit 6d7ebc5825
3444 changed files with 865284 additions and 463132 deletions

View File

@@ -0,0 +1,27 @@
using UnityEngine;
#if ENABLE_INPUT_SYSTEM
using UnityEngine.InputSystem.UI;
#else
using UnityEngine.EventSystems;
#endif
namespace Evo.UI.Demo
{
public class InputSystemDetector : MonoBehaviour
{
void Awake()
{
#if ENABLE_INPUT_SYSTEM
if (!gameObject.TryGetComponent<InputSystemUIInputModule>(out var _))
{
gameObject.AddComponent<InputSystemUIInputModule>();
}
#else
if (!gameObject.TryGetComponent<StandaloneInputModule>(out var _))
{
gameObject.AddComponent<StandaloneInputModule>();
}
#endif
}
}
}