- Notifications
You must be signed in to change notification settings - Fork 4.4k
Turns physics modules into optional dependencies. #5112
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
Conversation
5994dff
to a27e9b1
Compare com.unity.ml-agents/Editor/RayPerceptionSensorComponentBaseEditor.cs Outdated Show resolved Hide resolved
a27e9b1
to f17d9c9
Compare e6f24a8
to f9e99da
Compare NOT pull_request.draft AND | ||
(pull_request.changes.any match "com.unity.ml-agents/**" OR | ||
pull_request.changes.any match ".yamato/com.unity.ml-agents-test.yml") | ||
optional_deps: |
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.
yml to test the package with different project setups to ensure all tests pass with each optional dependency removed.
"dependencies": { | ||
"com.unity.ml-agents": "1.9.0-preview" | ||
"com.unity.ml-agents": "1.9.0-preview", | ||
"com.unity.modules.physics": "1.0.0" |
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.
add this for physics sensors in extensions.
com.unity.ml-agents/Runtime/SideChannels/TrainingAnalyticsSideChannel.cs Outdated Show resolved Hide resolved
cb06ec5
to b4e832f
Compare com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent2D.cs Outdated Show resolved Hide resolved
78db448
to ff2184e
Compare 03ffbbf
to acb9987
Compare testProject: DevProject | ||
enableNoDefaultPackages: !!bool true | ||
- version: 2019.4 | ||
enableCodeCoverage: !!bool true |
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.
Can remove enableCodeCoverage
now, right?
{ | ||
// Set to the 2D defaults (just in case they ever diverge). | ||
RayLayerMask = Physics2D.DefaultRaycastLayers; | ||
RayLayerMask = -5; |
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.
Don't need this anymore, now that we're always using k_PhysicsDefaultLayers
in the base class. (sorry, github wouldn't let me do a multi-line suggestion).
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.
Two small nits, looks good otherwise.
Proposed change(s)
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
#5104 (Make both physics modules optional dependencies (com.unity.modules.physics and com.unity.modules.physics2d))
MLA-1850
Types of change(s)
Checklist
Other comments