#if UNITY_EDITOR using UnityEditor; using UnityEngine; using UnityEngine.InputSystem; #endif using UnityEngine.Scripting; namespace SC.XR.Unity.Simulation { /// /// This class automatically registers control layouts used by the . /// /// /// #if UNITY_EDITOR [InitializeOnLoad] #endif [Preserve] public static class SimulatedInputLayoutLoader { [Preserve] static SimulatedInputLayoutLoader() { RegisterInputLayouts(); } /// /// See . /// //[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad), Preserve] public static void Initialize() { // Will execute the static constructor as a side effect. } static void RegisterInputLayouts() { // InputSystem.RegisterLayout(); // InputSystem.RegisterLayout(); } } }