Skip to content

Commit

Permalink
Merge branch 'develop' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmcgill committed May 26, 2023
2 parents e9658cc + d2d8041 commit 6e8cbe0
Show file tree
Hide file tree
Showing 53 changed files with 59 additions and 53 deletions.
1 change: 1 addition & 0 deletions .yamato/config.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ editors:
- version: 2020.3
disable_tvos_run: true
- version: 2021.3
- version: 2022.1
- version: 2022.2
- version: 2023.1
- version: trunk
Expand Down
2 changes: 1 addition & 1 deletion Assets/Samples/CustomComposite/CustomComposite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public override void OnGUI()
target.scaleFactor = EditorGUILayout.Slider(m_ScaleFactorLabel, currentValue, 0, 2);
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var slider = new Slider(m_ScaleFactorLabel.text, 0, 2)
Expand Down
2 changes: 1 addition & 1 deletion Assets/Samples/InGameHints/InGameHintsActions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.6.0
// version 1.6.1
// from Assets/Samples/InGameHints/InGameHintsActions.inputactions
//
// Changes to this file may cause incorrect behavior and will be lost if
Expand Down
2 changes: 1 addition & 1 deletion Assets/Samples/SimpleDemo/SimpleControls.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.6.0
// version 1.6.1
// from Assets/Samples/SimpleDemo/SimpleControls.inputactions
//
// Changes to this file may cause incorrect behavior and will be lost if
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using NUnit.Framework;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Editor;
Expand Down
2 changes: 1 addition & 1 deletion Assets/Tests/InputSystem.Editor/SelectorsTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// UITK TreeView is not supported in earlier versions
// Therefore the UITK version of the InputActionAsset Editor is not available on earlier Editor versions either.
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System.Linq;
using NUnit.Framework;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion Assets/Tests/InputSystem.Editor/TestData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion Assets/Tests/InputSystem.Editor/TestDataGenerators.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System.Collections.Generic;
using UnityEngine.InputSystem;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.6.0
// version 1.6.1
// from Assets/Tests/InputSystem/InputActionCodeGeneratorActions.inputactions
//
// Changes to this file may cause incorrect behavior and will be lost if
Expand Down
5 changes: 5 additions & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
Due to package verification, the latest version below is the unpublished version and the date is meaningless.
however, it has to be formatted properly to pass verification tests.

## [1.6.1] - 2023-05-26

### Fixed
- Fixed issue with compiling in Unity 2022.1 and with XR Toolkit by guarding the experimental UITK Asset Editor code completely.

## [1.6.0] - 2023-05-25

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public override void OnGUI()
target.mode = (Vector2Composite.Mode)EditorGUILayout.EnumPopup(m_ModeLabel, target.mode);
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var modeField = new EnumField("Mode", target.mode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public override void OnGUI()
target.mode = (Vector2Composite.Mode)EditorGUILayout.EnumPopup(m_ModeLabel, target.mode);
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var modeField = new EnumField("Mode", target.mode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public InputControlScheme(string name, IEnumerable<DeviceRequirement> devices =
}
}

#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
internal InputControlScheme(SerializedProperty sp)
{
var requirements = new List<DeviceRequirement>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public override void OnGUI()
m_DurationSetting.OnGUI();
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
m_PressPointSetting.OnDrawVisualElements(root, onChangedCallback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public override void OnGUI()
m_PressPointSetting.OnGUI();
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var tapCountField = new IntegerField(m_TapCountLabel.text) { value = target.tapCount };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public override void OnGUI()
m_PressPointSetting.OnGUI();
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
root.Add(new HelpBox(s_HelpBoxText.text, HelpBoxMessageType.None));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public override void OnGUI()
m_PressPointSetting.OnGUI();
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
m_DurationSetting.OnDrawVisualElements(root, onChangedCallback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public override void OnGUI()
m_PressPointSetting.OnGUI();
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
m_DurationSetting.OnDrawVisualElements(root, onChangedCallback);
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.unity.inputsystem/InputSystem/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static partial class InputSystem
// Keep this in sync with "Packages/com.unity.inputsystem/package.json".
// NOTE: Unfortunately, System.Version doesn't use semantic versioning so we can't include
// "-preview" suffixes here.
internal const string kAssemblyVersion = "1.6.0";
internal const string kAssemblyVersion = "1.6.1";
internal const string kDocUrl = "https://docs.unity3d.com/Packages/[email protected]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public override void OnGUI()
m_MaxSetting.OnGUI();
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
m_MinSetting.OnDrawVisualElements(root, onChangedCallback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public override void OnGUI()
m_MaxSetting.OnGUI();
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public override void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
m_MinSetting.OnDrawVisualElements(root, onChangedCallback);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputLayoutCodeGenerator
// version 1.6.0
// version 1.6.1
// from "Keyboard" layout
//
// Changes to this file may cause incorrect behavior and will be lost if
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputLayoutCodeGenerator
// version 1.6.0
// version 1.6.1
// from "Mouse" layout
//
// Changes to this file may cause incorrect behavior and will be lost if
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputLayoutCodeGenerator
// version 1.6.0
// version 1.6.1
// from "Touchscreen" layout
//
// Changes to this file may cause incorrect behavior and will be lost if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ internal class InputActionEditorWindow : EditorWindow, IDisposable
[OnOpenAsset]
public static bool OnOpenAsset(int instanceId, int line)
{
#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
if (InputSystem.settings.IsFeatureEnabled(InputFeatureNames.kUseUIToolkitEditor))
return false;
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public void Clear()
m_ParameterEditor = null;
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public void OnDrawVisualElements(VisualElement root)
{
if (m_ParameterEditor != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public abstract class InputParameterEditor
/// </summary>
public abstract void OnGUI();

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
/// <summary>
/// Add visual elements for this parameter editor to a root VisualElement.
/// </summary>
Expand Down Expand Up @@ -212,7 +212,7 @@ public void Initialize(string label, string tooltip, string defaultName, Func<fl
$"Uses \"{defaultName}\" set in project-wide input settings.");
}

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public void OnDrawVisualElements(VisualElement root, Action onChangedCallback)
{
var value = m_GetValue();
Expand Down Expand Up @@ -364,7 +364,7 @@ public void OnGUI()
private FloatField m_FloatField;
private Button m_OpenInputSettingsButton;
private Toggle m_DefaultToggle;
#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
private HelpBox m_HelpBox;
#endif
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER // We use some UITK controls that are only available in 2022.2 or later (MultiColumnListView for example)
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR // We use some UITK controls that are only available in 2022.2 or later (MultiColumnListView for example)
using System.Collections.Generic;
using UnityEditor;
using UnityEngine.UIElements;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// UITK TreeView is not supported in earlier versions
// Therefore the UITK version of the InputActionAsset Editor is not available on earlier Editor versions either.
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.IO;
using UnityEditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using UnityEditor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Linq;
using UnityEditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Linq.Expressions;
using UnityEditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System.Collections.Generic;
using System.Linq;
using UnityEngine.InputSystem.Utilities;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// UITK TreeView is not supported in earlier versions
// Therefore the UITK version of the InputActionAsset Editor is not available on earlier Editor versions either.
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System.Linq;
using UnityEditor;
using UnityEngine.UIElements;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// UITK TreeView is not supported in earlier versions
// Therefore the UITK version of the InputActionAsset Editor is not available on earlier Editor versions either.
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using UnityEditor;
using UnityEngine.InputSystem.Editor;
using UnityEngine.UIElements;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using UnityEngine.UIElements;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using System.Collections.Generic;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR && UNITY_2022_2_OR_NEWER
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
using System;
using UnityEngine.UIElements;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal static class InputFeatureNames
public const string kUseReadValueCaching = "USE_READ_VALUE_CACHING";
public const string kParanoidReadValueCachingChecks = "PARANOID_READ_VALUE_CACHING_CHECKS";

#if UNITY_2022_2_OR_NEWER
#if UNITY_INPUT_SYSTEM_UI_TK_ASSET_EDITOR
public const string kUseUIToolkitEditor = "USE_UITOOLKIT_EDITOR";
#endif
}
Expand Down
Loading

0 comments on commit 6e8cbe0

Please sign in to comment.