This commit is contained in:
2026-11-24 15:51:02 +01:00
parent cca4d73e41
commit f4aa17114a
22092 changed files with 5042406 additions and 0 deletions
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4ea5bd36bf3924ec18c263bbdb10e425
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,28 @@
#if UNITY_EDITOR
using UnityEditor;
namespace UnityEngine.InputSystem.Editor
{
/// <summary>
/// Editor-specific singleton wrapper for RemoteInputPlayerConnection.
/// In the editor, we need to make sure that we get the same instance after domain reloads.
/// Otherwise, callbacks we have registered before the reload will no longer be valid, because
/// the object instance they point to will not deserialize to a valid object.
/// </summary>
internal class RemoteInputPlayerConnectionEditor : ScriptableSingleton<RemoteInputPlayerConnectionEditor>
{
[SerializeField]
private RemoteInputPlayerConnection m_Connection;
public static RemoteInputPlayerConnection GetInstance()
{
if (instance.m_Connection == null)
{
instance.m_Connection = ScriptableObject.CreateInstance<RemoteInputPlayerConnection>();
instance.m_Connection.hideFlags = HideFlags.HideAndDontSave;
}
return instance.m_Connection;
}
}
}
#endif
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8f6c78efe2b334209908669a961187f4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: