Skip to content

Commit 058c932

Browse files
authored
Merge branch 'develop' into isxb-1024-action-navigation-after-rename
2 parents 9d3e504 + 7536131 commit 058c932

File tree

17 files changed

+709
-278
lines changed

17 files changed

+709
-278
lines changed

.yamato/config.metadata

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,35 @@ upm_ci_install: npm install -g upm-ci-utils@stable --registry https://artifactor
1717
platforms_win:
1818
- name: win
1919
type: Unity::VM
20-
image: package-ci/win10:default
20+
image: package-ci/win10:v4
2121
flavor: b1.large
2222
- name: win_standalone
2323
type: Unity::VM
24-
image: package-ci/win10:default
24+
image: package-ci/win10:v4
2525
flavor: b1.large
2626
runtime: StandaloneWindows64
2727
- name: win_standalone_il2cpp
2828
type: Unity::VM
29-
image: package-ci/win10:default
29+
image: package-ci/win10:v4
3030
flavor: b1.large
3131
runtime: StandaloneWindows64
3232
scripting-backend: Il2Cpp
3333
installscript: unity-downloader-cli -c editor -c StandaloneSupport-IL2CPP --wait --fast -u
3434
platforms_nix:
3535
- name: mac
3636
type: Unity::VM::osx
37-
image: package-ci/macos-13:default
37+
image: package-ci/macos-13:v4
3838
flavor: m1.mac
3939
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
4040
- name: mac_standalone
4141
type: Unity::VM::osx
42-
image: package-ci/macos-13:default
42+
image: package-ci/macos-13:v4
4343
flavor: m1.mac
4444
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
4545
runtime: StandaloneOSX
4646
- name: mac_standalone_il2cpp
4747
type: Unity::VM::osx
48-
image: package-ci/macos-13:default
48+
image: package-ci/macos-13:v4
4949
flavor: m1.mac
5050
instabilities_run: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
5151
runtime: StandaloneOSX
@@ -84,4 +84,7 @@ instabilities_install_win: curl -s https://artifactory.prd.it.unity3d.com/artifa
8484
instabilities_run_win: run_standalone_instability_detection-latest.bat 0.5.1 || exit 0
8585

8686
instabilities_install_nix: curl -s https://artifactory.prd.it.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.sh --output run_standalone_instability_detection-latest.sh --retry 5 || exit 0
87-
instabilities_run_mac: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
87+
instabilities_run_mac: sh ./run_standalone_instability_detection-latest.sh macos 0.5.1 || exit 0
88+
89+
yamato_source_dir_win: "%YAMATO_SOURCE_DIR%"
90+
yamato_source_dir_nix: ${YAMATO_SOURCE_DIR}

.yamato/upm-ci.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
type: {{ platform.type }}
1111
image: {{ platform.image }}
1212
flavor: {{ platform.flavor }}
13+
variables:
14+
EDITOR_VERSION: {{ editor.version }}
1315
commands:
1416
- {{ utr_install_win }}
1517
- {{ upm_ci_install }}
@@ -23,17 +25,19 @@
2325
- move /Y .\Assets\Samples.meta .\Packages\com.unity.inputsystem
2426
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
2527
# Run upm-ci verification tests as well as tests contained in the package.
26-
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }}
28+
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u %EDITOR_VERSION%
29+
{% if platform.name == "win" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem"
30+
--extra-utr-arg="--coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
2731
{% if platform.installscript %}
2832
- {{ unity_downloader_install }}
29-
- {{ platform.installscript }} {{ editor.version }}
33+
- {{ platform.installscript }} %EDITOR_VERSION%
3034
{% endif %}
3135
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
3236
# samples are in the package. Move the samples back into the project.
3337
- move /Y .\Packages\com.unity.inputsystem\Samples .\Assets
3438
- move /Y .\Packages\com.unity.inputsystem\Samples.meta .\Assets
3539
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
36-
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem
40+
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "win" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem {% if platform.name == "win" %}--enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_win }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
3741
after:
3842
- {{ instabilities_install_win }}
3943
- {{ instabilities_run_win }}
@@ -52,6 +56,8 @@
5256
type: {{ platform.type }}
5357
image: {{ platform.image }}
5458
flavor: {{ platform.flavor }}
59+
variables:
60+
EDITOR_VERSION: {{ editor.version }}
5561
commands:
5662
- {{ utr_install_nix }}
5763
- {{ upm_ci_install }}
@@ -64,17 +70,17 @@
6470
- mv ./Assets/Samples.meta ./Packages/com.unity.inputsystem
6571
- upm-ci package pack --package-path ./Packages/com.unity.inputsystem/
6672
# Run upm-ci verification tests as well as tests contained in the package.
67-
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u {{ editor.version }}
73+
- upm-ci package test --package-path ./Packages/com.unity.inputsystem/ -u $EDITOR_VERSION {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --extra-utr-arg="--coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Package" {% endif %}
6874
{% if platform.installscript %}
6975
- {{ unity_downloader_install }}
70-
- {{ platform.installscript }} {{ editor.version }}
76+
- {{ platform.installscript }} $EDITOR_VERSION
7177
{% endif %}
7278
# ADBv2 on 2019.4 causes the test runner to not start on initial import when the
7379
# samples are in the package. Move the samples back into the project.
7480
- mv ./Packages/com.unity.inputsystem/Samples ./Assets
7581
- mv ./Packages/com.unity.inputsystem/Samples.meta ./Assets
7682
# Now run our full test suite that sits in Assets/Tests by running UTR on our project.
77-
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" %} --suite=editor {% endif %} {% if platform.name == "linux" %} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem
83+
- ./utr --testproject . --timeout=1200 --editor-location=.Editor --artifacts_path=upm-ci~/test-results/isolation-com.unity.inputsystem.tests --suite=playmode {% if platform.name == "mac" or platform.name == "linux"%} --suite=editor {% endif %} {% if category.name == "performance" %} --category=Performance {% endif %} --api-profile=NET_4_6 {% if platform.runtime %} --platform {{ platform.runtime }} {% endif %} {% if platform.scripting-backend %} --scripting-backend {{ platform.scripting-backend }} {% endif %} --report-performance-data --performance-project-id=InputSystem {% if platform.name == "mac" or platform.name == "linux" %} --enable-code-coverage --coverage-options="generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.InputSystem" --coverage-results-path={{ yamato_source_dir_nix }}/upm-ci~/test-results/CodeCoverage/Project {% endif %}
7884
after:
7985
- {{ instabilities_install_nix }}
8086
- {{ platform.instabilities_run }}
@@ -94,10 +100,12 @@ build_ios_{{ editor.version }}_{{ category.name }}:
94100
type: Unity::VM::osx
95101
image: {{ ios_and_tvos_macos_bokken_image }}
96102
flavor: b1.large
103+
variables:
104+
EDITOR_VERSION: {{ editor.version }}
97105
commands:
98106
- {{ utr_install_nix }}
99107
- {{ unity_downloader_install }}
100-
- unity-downloader-cli -c Editor -c iOS -u {{ editor.version }} --fast --wait
108+
- unity-downloader-cli -c Editor -c iOS -u $EDITOR_VERSION --fast --wait
101109
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=iOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
102110
after:
103111
- {{ instabilities_install_nix }}
@@ -117,6 +125,8 @@ run_ios_{{ editor.version }}_{{ category.name }}:
117125
image: {{ ios_and_tvos_macos_bokken_image }}
118126
model: SE
119127
flavor: b1.medium
128+
variables:
129+
EDITOR_VERSION: {{ editor.version }}
120130
skip_checkout: true
121131
dependencies:
122132
- .yamato/upm-ci.yml#build_ios_{{ editor.version }}_{{ category.name }}
@@ -138,10 +148,12 @@ build_tvos_{{ editor.version }}:
138148
type: Unity::VM::osx
139149
image: {{ ios_and_tvos_macos_bokken_image }}
140150
flavor: b1.large
151+
variables:
152+
EDITOR_VERSION: {{ editor.version }}
141153
commands:
142154
- {{ utr_install_nix }}
143155
- {{ unity_downloader_install }}
144-
- unity-downloader-cli -c Editor -c AppleTV -u {{ editor.version }} --fast --wait
156+
- unity-downloader-cli -c Editor -c AppleTV -u $EDITOR_VERSION --fast --wait
145157
- ./utr --suite=playmode --platform=tvOS --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --build-only --report-performance-data --performance-project-id=InputSystem
146158
after:
147159
- {{ instabilities_install_nix }}
@@ -160,6 +172,8 @@ run_tvos_{{ editor.version }}:
160172
type: Unity::mobile::appletv
161173
image: {{ ios_and_tvos_macos_bokken_image }}
162174
flavor: b1.medium
175+
variables:
176+
EDITOR_VERSION: {{ editor.version }}
163177
skip_checkout: true
164178
dependencies:
165179
- .yamato/upm-ci.yml#build_tvos_{{ editor.version }}
@@ -182,10 +196,12 @@ build_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
182196
type: Unity::VM
183197
image: package-ci/win10:default
184198
flavor: b1.xlarge
199+
variables:
200+
EDITOR_VERSION: {{ editor.version }}
185201
commands:
186202
- {{ utr_install_win }}
187203
- {{ unity_downloader_install }}
188-
- unity-downloader-cli -c Editor -c Android -u {{ editor.version }} --fast --wait
204+
- unity-downloader-cli -c Editor -c Android -u %EDITOR_VERSION% --fast --wait
189205
- ./utr --suite=playmode {% if category.name == "performance" %} --category=Performance {% endif %} --platform=Android --editor-location=.Editor --testproject=. --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend.name }} --build-only --repository --performance-project-id=InputSystem
190206
after:
191207
- {{ instabilities_install_win }}
@@ -204,6 +220,8 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
204220
type: Unity::mobile::shield
205221
image: package-ci/win10:default
206222
flavor: b1.medium
223+
variables:
224+
EDITOR_VERSION: {{ editor.version }}
207225
# Skip repository cloning
208226
skip_checkout: true
209227
# Set a dependency on the build job
@@ -235,7 +253,7 @@ run_android_{{ editor.version }}_{{ backend.name }}_{{ category.name }}:
235253
{% endfor %} # editors
236254

237255
all_tests:
238-
name: All Tests
256+
name: All Tests
239257
dependencies:
240258
{% for editor in editors %}
241259
{% for platform in platforms_win %}

Assets/Tests/InputSystem/CorePerformanceTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,10 @@ public void Performance_OptimizedControls_ReadingPose4kTimes(OptimizationTestTyp
11131113
"InputSystem.onAfterUpdate",
11141114
"PreUpdate.NewInputUpdate",
11151115
"PreUpdate.InputForUIUpdate",
1116-
"FixedUpdate.NewInputFixedUpdate"
1116+
"FixedUpdate.NewInputFixedUpdate",
1117+
"InputAction.Disable",
1118+
"InputAction.Enable",
1119+
"InputActionMap.ResolveBindings"
11171120
};
11181121

11191122
[PrebuildSetup(typeof(ProjectWideActionsBuildSetup))]

Assets/Tests/InputSystem/Plugins/UITests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,13 +1793,15 @@ public IEnumerator UI_CanReleaseAndPressTouchesOnSameFrame()
17931793
.Matches((UICallbackReceiver.Event e) => e.pointerData.pointerType == UIPointerType.Touch).And
17941794
.Matches((UICallbackReceiver.Event e) => e.pointerData.position == secondPosition));
17951795

1796+
#if UNITY_2021_2_OR_NEWER
17961797
Assert.That(scene.rightChildReceiver.events,
17971798
Has.Exactly(1).With.Property("type").EqualTo(EventType.PointerMove).And
17981799
.Matches((UICallbackReceiver.Event e) => e.pointerData.device == touchScreen).And
17991800
.Matches((UICallbackReceiver.Event e) => e.pointerData.touchId == 2).And
18001801
.Matches((UICallbackReceiver.Event e) => e.pointerData.pointerId == pointerIdTouch2).And
18011802
.Matches((UICallbackReceiver.Event e) => e.pointerData.pointerType == UIPointerType.Touch).And
18021803
.Matches((UICallbackReceiver.Event e) => e.pointerData.position == secondPosition));
1804+
#endif
18031805

18041806
// Pointer 3
18051807
Assert.That(scene.rightChildReceiver.events,

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,20 @@ however, it has to be formatted properly to pass verification tests.
3333
- Fixed an issue when displaying Serialized InputAction's Processor properties inside the Inspector window. [ISXB-1269](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1269)
3434
- Fixed an issue with default device selection when adding new Control Scheme.
3535
- Fixed an issue where action map delegates were not updated when the asset already assigned to the PlayerInput component were changed [ISXB-711](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-711).
36+
- Fixed Action properties edition in the UI Toolkit version of the Input Actions Asset editor. [ISXB-1277](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1277)
37+
- Fixed an issue where batch jobs would fail with "Error: Error building Player because scripts are compiling" if a source generated .inputactions asset is out of sync with its generated source code (ISXB-1300).
3638
- Fixed arrow key navigation of Input Actions after Action rename. [ISXB-1024](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1024)
3739

3840
### Changed
41+
- Changed location of the link xml file (code stripping rules), from a temporary directory to the project Library folder (ISX-2140).
3942
- Added back the InputManager to InputSystem project-wide asset migration code with performance improvement (ISX-2086).
4043
- Changed `OnScreenControl` to automaticaly switch, in Single Player with autoswitch enabled, to the target device control scheme when the first component is enabled to prevent bad interactions when it start.
4144
- Changed paremeter `overrideModifiersNeedToBePressedFirst` to obsolete for `ButtonWithOneModifier`, `ButtonWithTwoModifiers`, `OneModifierComposite` and `TwoModifiersComposite` in favour the new `modifiersOrder` parameter which is more explicit.
4245
- Changed `Samples/Visualizers/GamepadVisualizer.unity` to visualize the control values of the current device instead of the first device.
4346

4447
### Added
4548
- Added new API `InputSystem.settings.useIMGUIEditorForAssets` that should be used in custom `InputParameterEditor` that use both IMGUI and UI Toolkit.
49+
- Added ProfilerMakers to `InputAction.Enable()` and `InputActionMap.ResolveBindings()` to enable gathering of profiling data.
4650

4751
## [1.11.2] - 2024-10-16
4852

@@ -72,6 +76,7 @@ however, it has to be formatted properly to pass verification tests.
7276
- Fixed potential crash on Mac when using stale references to deleted InputDevice objects [ISXB-606](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-606).
7377
- Fixed conditional compilation for non-editor analytics on platforms not enabling analytics.
7478
- Fixed simulated touch input not working with PlayerInput component [ISXB-483](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-483).
79+
- Fixed unused PenState information to determine the displayIndex on platforms providing it. (PLAT-10123)
7580

7681
### Changed
7782
- Renamed editor Resources directories to PackageResources to fix package validation warnings.

Packages/com.unity.inputsystem/Documentation~/UISupport.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The three main UI solutions are **UI Toolkit**, **Unity UI**, and **IMGUI**. The
3232

3333
- From Unity 2023.2 and onwards, the UI actions defined in the default [project-wide actions](./ProjectWideActions.md) directly map to UI Toolkit input. You do not need to use the UI Input Module component.</br></br>
3434
- In versions of Unity prior to 2023.2, you must use the UI Input Module component to define which actions are passed through from the Input System to the UI.
35+
- Refer to UI Toolkit [Runtime UI event system and input handling](https://docs.unity3d.com/Manual/UIE-Runtime-Event-System.html) for more information on how to configure UI Toolkit input.
3536

3637
**For [**Unity UI**](https://docs.unity3d.com/Packages/com.unity.ugui@latest), also known as "uGUI" (a GameObject and Component style UI solution):**
3738

0 commit comments

Comments
 (0)