Skip to content

Commit c4b6752

Browse files
committed
added doc
1 parent 0dde2b8 commit c4b6752

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ however, it has to be formatted properly to pass verification tests.
3030
- Fixed tooltip support in the UI Toolkit version of the Input Actions Asset editor.
3131
- Fixed documentation to clarify bindings with modifiers `overrideModifiersNeedToBePressedFirst` configuration [ISXB-806](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-806).
3232
- Fixed an issue in `Samples/Visualizers/GamepadVisualizer.unity` sample where the visualization wouldn't handle device disconnects or current device changes properly (ISXB-1243).
33+
- 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)
3334

3435
### Changed
3536
- Added back the InputManager to InputSystem project-wide asset migration code with performance improvement (ISX-2086).
3637
- 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.
3738
- Changed paremeter `overrideModifiersNeedToBePressedFirst` to obsolete for `ButtonWithOneModifier`, `ButtonWithTwoModifiers`, `OneModifierComposite` and `TwoModifiersComposite` in favour the new `modifiersOrder` parameter which is more explicit.
3839
- Changed `Samples/Visualizers/GamepadVisualizer.unity` to visualize the control values of the current device instead of the first device.
3940

41+
### Added
42+
- Added new API `InputSystem.settings.useIMGUIEditorForAssets` that should be used in custom `InputParameterEditor` that use both IMGUI and UI Toolkit.
43+
4044
## [1.11.2] - 2024-10-16
4145

4246
### Fixed

Packages/com.unity.inputsystem/InputSystem/InputSettings.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,14 @@ public enum InputActionPropertyDrawerMode
979979
}
980980

981981
#if UNITY_EDITOR && UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
982-
public bool useIMGUIEditorForAssets => UnityEditor.EditorGUI.indentLevel >0 || IsFeatureEnabled(InputFeatureNames.kUseIMGUIEditorForAssets);
982+
/// <summary>
983+
/// Determines if we should render the UI with IMGUI even if an UI Toolkit UI is available.
984+
///
985+
/// This should be used when writing a custom <see cref="InputParameterEditor"/> to :
986+
/// * support inspector view which only work in IMGUI for now.
987+
/// * prevent the UI to be rendered in IMGUI and UI Toolkit in the Input Actions Editor window.
988+
/// </summary>
989+
public bool useIMGUIEditorForAssets => UnityEditor.EditorGUI.indentLevel > 0 || IsFeatureEnabled(InputFeatureNames.kUseIMGUIEditorForAssets);
983990
#endif
984991

985992
private static bool CompareFloats(float a, float b)

0 commit comments

Comments
 (0)