Files
cooney ce83f21c93 UI 자동화를 위해 바인딩 기능 구현
- 유니티 에셋 인증 오류로 meta 재생성
2026-01-25 01:31:34 +09:00

38 lines
1.3 KiB
C#

#if UNITY_EDITOR
using UnityEngine.InputSystem.Editor;
namespace UnityEngine.InputSystem
{
/// <summary>
/// A hidden, internal object we put in the editor to bundle input system state
/// and help us survive domain reloads.
/// </summary>
/// <remarks>
/// Player doesn't need this stuff because there's no domain reloads to survive.
/// </remarks>
internal class InputSystemObject : ScriptableObject, ISerializationCallbackReceiver
{
[SerializeField] public InputSystem.State systemState;
[SerializeField] public bool newInputBackendsCheckedAsEnabled;
[SerializeField] public string settings;
[SerializeField] public double exitEditModeTime;
[SerializeField] public double enterPlayModeTime;
public void OnBeforeSerialize()
{
// Save current system state.
systemState.manager = InputSystem.s_Manager;
systemState.remote = InputSystem.s_Remote;
systemState.remoteConnection = InputSystem.s_RemoteConnection;
systemState.managerState = InputSystem.s_Manager.SaveState();
systemState.remotingState = InputSystem.s_Remote.SaveState();
systemState.userSettings = InputEditorUserSettings.s_Settings;
}
public void OnAfterDeserialize()
{
}
}
}
#endif // UNITY_EDITOR