Skip to content

Fix serialization of RigidBodySensorComponents #5780

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TV4Fun
Copy link

@TV4Fun TV4Fun commented Aug 18, 2022

Proposed change(s)

The settings of RigidBodySensorComponents were not getting serialized
and saved properly before. Now they are.
Fixes #5774

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

TV4Fun added 2 commits August 17, 2022 17:47
The settings of `RigidBodySensorComponent`s were not getting serialized
and saved properly before. Now they are.
Fixes Unity-Technologies#5774
…null check

Having the update of the internal object where it was was causing problems,
so put it back at the end. Also, for some reason I will never understand,
the `ReferenceEquals` check on `RootBody` was sometimes returning false
even when it was set to `null`, so add an extra check for Unity `null`.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RigidBodySensorComponent does not save which objects in hierarchy are enabled
1 participant