Skip to content

Commit 88aded7

Browse files
authored
Merge branch 'develop' into isxb-1155-disable-rename-cut-mode
2 parents 6f30d83 + 6b042c2 commit 88aded7

File tree

6 files changed

+48
-23
lines changed

6 files changed

+48
-23
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 %}

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ however, it has to be formatted properly to pass verification tests.
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).
3636
- 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).
3738
- Fixed Cut Mode for Action Maps and Actions to make renaming disabled. [ISXB-1155](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1155)
3839

3940
### Changed

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

Packages/com.unity.inputsystem/InputSystem/Editor/AssetImporter/InputActionImporter.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ private static void GenerateWrapperCode(AssetImportContext ctx, InputActionAsset
256256

257257
if (InputActionCodeGenerator.GenerateWrapperCode(wrapperFilePath, asset, options))
258258
{
259-
// When we generate the wrapper code cs file during asset import, we cannot call ImportAsset on that directly because
260-
// script assets have to be imported before all other assets, and are not allowed to be added to the import queue during
261-
// asset import. So instead we register a callback to trigger a delayed asset refresh which should then pick up the
262-
// changed/added script, and trigger a new import.
263-
EditorApplication.delayCall += AssetDatabase.Refresh;
259+
// This isn't ideal and may have side effects, but we cannot avoid compiling again.
260+
// Previously we attempted to run a EditorApplication.delayCall += AssetDatabase.Refresh
261+
// but this would lead to "error: Error building Player because scripts are compiling" in CI.
262+
// Previous comment here warned against not being able to reimport here directly, but it seems it's ok.
263+
AssetDatabase.ImportAsset(wrapperFilePath);
264264
}
265265
}
266266

Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInput.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,9 @@ private void UpdateDelegates()
981981
}
982982
if (m_AllMapsHashCode != allMapsHashCode)
983983
{
984-
InstallOnActionTriggeredHook();
984+
if (m_NotificationBehavior != PlayerNotifications.InvokeUnityEvents)
985+
InstallOnActionTriggeredHook();
986+
985987
CacheMessageNames();
986988
m_AllMapsHashCode = allMapsHashCode;
987989
}

0 commit comments

Comments
 (0)