This commit is contained in:
2026-08-28 15:56:12 +01:00
commit 4d5f73e29c
7349 changed files with 664196 additions and 0 deletions
@@ -0,0 +1,29 @@
using UnityEngine;
using UnityEngine.EventSystems;
namespace UnityEditor.EventSystems
{
public static class InputModuleComponentFactory
{
public delegate BaseInputModule AddInputModuleComponentDelegate(GameObject gameObject);
public static void SetInputModuleComponentOverride(AddInputModuleComponentDelegate addInputModuleComponentOverride)
{
m_AddInputModuleComponentOverride = addInputModuleComponentOverride;
}
private static AddInputModuleComponentDelegate m_AddInputModuleComponentOverride = null;
public static BaseInputModule AddInputModule(GameObject gameObject)
{
return m_AddInputModuleComponentOverride != null ?
m_AddInputModuleComponentOverride(gameObject) :
AddStandaloneInputModuleComponent(gameObject);
}
private static BaseInputModule AddStandaloneInputModuleComponent(GameObject gameObject)
{
return ObjectFactory.AddComponent<StandaloneInputModule>(gameObject);
}
}
}