com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
chore!: migrate components to runtime assembly [MTT-8472]
This PR migrates all scripts from the components assembly to the runtime assembly (it also completely removes the components assembly). This PR also includes some updates to NetworkTransform that help reduce cpu consumption and gc allocations (still more planned work towards this).
Changelog
- Added:
NetworkProfilingMetricsandNetworkMessageMetricsthat provide control over whether profiling and/or message related metrics are enabled in order to make profiling (especially when GCAlloc hunting) easier. These were added to NetworkConfig and can be edited in theNetworkManagerinspectorview. - Changed: All NGO components were migrated into the Runtime assembly.
- Changed:
NetworkTransform.Updateto beNetworkTransform.OnUpdate. - Changed: Non-authority
NetworkTransforminstances now register withNetworkManagerand are updated in theNetworkManager.NetworkUpdatemethod. - Removed:
NetworkRigidbodyBase.FixedUpdatemethod that is no longer needed to updateNetworkTransform. - Removed:
NetworkTransform.Update. - Removed: The components assembly.
Testing and Documentation
- No tests have been added.
- Documentation changes are necessary (wip)
Breaking Changes
This PR contains breaking changes to:
- NetworkTransform