Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
309a5c5
Initial drafting of InputAnalytics
ekcoh Oct 3, 2023
c142087
wip finding triggers
ekcoh Oct 3, 2023
14045c9
wip
ekcoh Oct 4, 2023
122425a
wip - Feature flag and functionality to auto-save on focus lost in in…
ekcoh Oct 4, 2023
a01da6f
Merge branch 'develop' into isxb-1546-analytics
ekcoh Oct 25, 2023
6c51572
wip
ekcoh Oct 25, 2023
214dd74
Added initial tests and updated analytics code
ekcoh Nov 1, 2023
d76b680
wip
ekcoh Nov 2, 2023
f2317d4
wip
ekcoh Nov 2, 2023
6065763
Merge branch 'develop' into isxb-1546-analytics
ekcoh Nov 13, 2023
665869c
UITK editor integration
ekcoh Dec 14, 2023
f1475b7
Extended test coverage
ekcoh Dec 18, 2023
041de64
Added conditional compile directives for analytics, removed runtime a…
ekcoh Dec 18, 2023
e7d92cb
Merge branch 'develop' into isxb-1546-analytics
ekcoh Dec 18, 2023
24b6ac6
Merge branch 'isxb-1546-analytics' of github.com:Unity-Technologies/I…
ekcoh Dec 18, 2023
37e9340
Refactoring of analytics to be API version agnostic
ekcoh Dec 21, 2023
43c745c
Fixed typo
ekcoh Dec 21, 2023
af1de0d
Corrections to code constructing analytics after state in editor due …
ekcoh Jan 9, 2024
b16465d
Simplified symbol evaluations
ekcoh Jan 9, 2024
6d5f640
Fixes for Unity pre 2023.2
ekcoh Jan 9, 2024
36e1310
Made IData non-nested to avoid problems with older C# versions
ekcoh Jan 9, 2024
00026a2
Adjustments to work around various compiler and C# language support v…
ekcoh Jan 9, 2024
2730836
Add missing doc, reordered private and public items
ekcoh Jan 10, 2024
ec1edf9
Fixed formatting issues by correcting misplaced #endif
ekcoh Jan 10, 2024
660a74d
Reactored session analytics out of InputAnalytics into InputEditorAna…
ekcoh Jan 10, 2024
71f6832
Fixed incorrect references
ekcoh Jan 10, 2024
4b336af
Fully qualified ns
ekcoh Jan 10, 2024
c8ee26e
Fix
ekcoh Jan 10, 2024
732bcd7
Added fully qualified namespace
ekcoh Jan 10, 2024
f7f273e
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jan 10, 2024
c015085
Added missing logic for integration with free-floating editor
ekcoh Jan 11, 2024
6b38d11
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jan 11, 2024
192462f
FIX: Due SettingsProvider bug in Unity focusController may be null du…
ekcoh Jan 29, 2024
ade0b20
Intermediate commit of InputActionDrawer and PlayerInputEditor analyt…
ekcoh Feb 1, 2024
e24d5c9
Merge branch 'develop' into isxb-1546-analytics
ekcoh Mar 28, 2024
709f316
Fixed compile error from merge
ekcoh Mar 28, 2024
af4af11
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jun 13, 2024
44b812e
CHANGE: Added analytics for settings.
ekcoh Jun 20, 2024
bfd73a1
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jun 20, 2024
a629b01
FIX: Variable name shadowing causing compilation failure on Unity 2019.
ekcoh Jun 20, 2024
10b3ec8
FIX: Corrected code to compile correctly when Project-wide Input Acti…
ekcoh Jun 20, 2024
7e6c141
FIX: Corrected conditional compilation for Unity version supporting P…
ekcoh Jun 20, 2024
29dc8c7
Added build GUID to build analytics top support group-by
ekcoh Jun 20, 2024
e7d59da
Added component editor analytics
ekcoh Jun 26, 2024
ce1591c
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jun 26, 2024
adf8d4c
Removed ToString() method not needed
ekcoh Jun 26, 2024
5b417c3
Merge branch 'isxb-1546-analytics' of github.com:Unity-Technologies/I…
ekcoh Jun 26, 2024
8a65a4d
Key and interface corrections
ekcoh Jun 26, 2024
df3bd7d
Removed WGI statistic
ekcoh Jun 26, 2024
725b92b
FIX: ISXB-930 InputActionVisualizer and InputControlVisualizer except…
ekcoh Jun 26, 2024
d95224a
Updated CHANGELOG.md
ekcoh Jun 26, 2024
f6c9632
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jun 26, 2024
28b0aba
Added test case
ekcoh Jun 26, 2024
ef62792
Merge branch 'isxb-1546-analytics' of github.com:Unity-Technologies/I…
ekcoh Jun 26, 2024
4adc84f
Moved InputSettings non-standard equality check code to InputSettings…
ekcoh Jun 26, 2024
6a97736
Fixed an error in conditionally compiled code
ekcoh Jun 26, 2024
a9fd9c6
Code cleanup, naming corrections, more tests
ekcoh Jun 27, 2024
fc05e99
Removed undesired serialization directive
ekcoh Jun 27, 2024
4af0493
Additional cleanup
ekcoh Jun 27, 2024
7baf018
Adoptions for older unity versions, conditional compilation and manua…
ekcoh Jun 27, 2024
ffa2e65
Switched to snakecase namingh to avoid name scheme inconsistency
ekcoh Jun 27, 2024
63e88b7
Fix for build with missing UI
ekcoh Jun 27, 2024
2d01a37
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jun 27, 2024
af8432e
Fix for non UI scenario
ekcoh Jun 27, 2024
9024b1b
Merge branch 'isxb-1546-analytics' of github.com:Unity-Technologies/I…
ekcoh Jun 27, 2024
11f4703
Fixed problem from name refactoring
ekcoh Jun 27, 2024
fef8e71
More conditional compilation problem fixes
ekcoh Jun 27, 2024
bf6f088
Fixed incorrect name after refactor
ekcoh Jun 27, 2024
ea94310
Name fix
ekcoh Jun 27, 2024
d7e5fd8
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jun 28, 2024
3abfa2e
Removed change checks as suggested in review and by backend engineer …
ekcoh Jun 28, 2024
6e8d085
Merge branch 'isxb-1546-analytics' of github.com:Unity-Technologies/I…
ekcoh Jun 28, 2024
6d6d6b6
Corrected a bug in StandaloneInputModuleEditor, improved test cases t…
ekcoh Jun 28, 2024
eb0363b
Removed IEquatable implementations that are now obsolete due to not c…
ekcoh Jun 28, 2024
fb04130
Update of duration data type and names by request from data engineer.
ekcoh Jun 28, 2024
f5a2c42
Removed downcast
ekcoh Jun 28, 2024
aa07f88
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jul 1, 2024
23c0f0a
Fixes and tweaks for UI-based analytics
ekcoh Jul 1, 2024
12f0c52
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jul 1, 2024
9843c6b
Merge branch 'develop' into isxb-1546-analytics
ekcoh Jul 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Assets/Samples/Visualizers/InputActionVisualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ protected void Update()
{
base.OnDisable();

s_EnabledInstances.Remove(this);
if (s_EnabledInstances.Count == 0)
InputSystem.onActionChange -= OnActionChange;
if (s_EnabledInstances != null)
{
s_EnabledInstances.Remove(this);
if (s_EnabledInstances.Count == 0)
InputSystem.onActionChange -= OnActionChange;
}

if (m_Visualization == Visualization.Interaction && m_Action != null)
{
Expand Down
11 changes: 7 additions & 4 deletions Assets/Samples/Visualizers/InputControlVisualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,14 @@ public int controlIndex
if (m_Visualization == Mode.None)
return;

s_EnabledInstances.Remove(this);
if (s_EnabledInstances.Count == 0)
if (s_EnabledInstances != null)
{
InputSystem.onDeviceChange -= OnDeviceChange;
InputSystem.onEvent -= OnEvent;
s_EnabledInstances.Remove(this);
if (s_EnabledInstances.Count == 0)
{
InputSystem.onDeviceChange -= OnDeviceChange;
InputSystem.onEvent -= OnEvent;
}
}

m_Control = null;
Expand Down
7 changes: 5 additions & 2 deletions Assets/Tests/InputSystem.Editor/TestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Editor;
using InputAnalytics = UnityEngine.InputSystem.InputAnalytics;
using Random = UnityEngine.Random;

public static class TestData
Expand Down Expand Up @@ -33,11 +34,13 @@ public static class TestData
});

internal static Generator<InputActionsEditorState> editorState =
new(() => new InputActionsEditorState(new SerializedObject(ScriptableObject.CreateInstance<InputActionAsset>())));
new(() => new InputActionsEditorState(
new InputActionsEditorSessionAnalytic(InputActionsEditorSessionAnalytic.Data.Kind.EditorWindow),
new SerializedObject(ScriptableObject.CreateInstance<InputActionAsset>())));

internal static Generator<InputActionsEditorState> EditorStateWithAsset(ScriptableObject asset)
{
return new Generator<InputActionsEditorState>(() => new InputActionsEditorState(new SerializedObject(asset)));
return new Generator<InputActionsEditorState>(() => new InputActionsEditorState(null, new SerializedObject(asset)));
}

public static Generator<InputControlScheme.DeviceRequirement> deviceRequirement =
Expand Down
516 changes: 514 additions & 2 deletions Assets/Tests/InputSystem/CoreTests_Analytics.cs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ however, it has to be formatted properly to pass verification tests.
- Fixed the UI generation of enum fields when editing interactions of action properties. The new selected value was lost when saving.
- Fixed the UI generation of custom interactions of action properties when it rely on OnGUI callback. [ISXB-886](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-886).
- Fixed deletion of last composite part raising an exception. [ISXB-804](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-804)
- Fixed an issue related to Visualizers sample where exceptions would be thrown by InputActionVisualizer and InputControlVisualizer when entering play-mode if added as components to a new `GameObject`.

### Added
- Added additional device information when logging the error due to exceeding the maximum number of events processed
set by `InputSystem.settings.maxEventsBytesPerUpdate`. This additional information is available in development builds
only.
- Fixed deletion of last composite part raising an exception. [ISXB-804](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-804)
- Expanded editor and build insight analytics to cover ``.inputactions` asset editor usage, `InputSettings` and common component configurations.

### Changed
- Changed `DualSenseHIDInputReport` from internal to public visibility
- Added Input Setting option allowing to keep platform-specific scroll wheel input values instead of automatically converting them to a normalized range.

## [1.8.2] - 2024-04-29
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading