-
Notifications
You must be signed in to change notification settings - Fork 328
NEW: ISX-2099 InputAction code-setup (authoring) analytics #2003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
eef570b
Initial draft for code setup analytics
ekcoh 9c84feb
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh fc20b21
Updated CHANGELOG
ekcoh 5ffe6b7
Code clean-up
ekcoh b4dc342
Added missing compilation guards
ekcoh 6387763
Fixed formatting
ekcoh d8264ff
Added test case
ekcoh bfde21a
Added suppressions where required
ekcoh 0bab666
Renamed field to use snake case
ekcoh 11f0653
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh d9b1187
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh 9f9c24f
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh 2a5c4fa
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh 187d710
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh b5d3da7
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh e10d470
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh 4c4e8dd
Renamed analytic class and event to reflect the event of exiting play…
ekcoh c17cc8c
Merge branch 'develop' into isx-2099-code-setup-analytic
ekcoh ad68139
Simplified reset code
ekcoh 9192bc6
Merge branch 'isx-2099-code-setup-analytic' of github.com:Unity-Techn…
ekcoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is possible - there are other tests that do this E.g. texture streaming tests in trunk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would love to learn how to do that properly. I tried it but when I programmatically exited play-mode the test aborted. We state its possible in the docs, but couldn't see any reference to how: https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/edit-mode-vs-play-mode-tests.html
Note: You can also control entering and exiting Play Mode from your Edit Mode test. This allow your test to make changes before entering Play Mode.
EditorApplication.playMode doesn't seem to do the job for me....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In and edit and play mode test You should be able to use code like this:
yield return new EnterPlayMode();
yield return new ExitPlayMode();
See this for more details internally:
https://github.cds.internal.unity3d.com/unity/com.unity.memoryprofiler/blob/46687aa966bea49d093041968fb6d40cc8fd39f4/com.unity.memoryprofiler/Tests/Editor/SceneRootsAndAssetBundles/ReferenceToTests.cs#L58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will land this as-is and file a separate task on this. if ok @lyndon-unity ? There are many places to change to that / correct triggers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A ticket have now been filed.