com.unity.ai.navigation 2.0.3
com.unity.ai.navigation
Source docsNotes: processedReleased July 26, 2024
Unity Compatibility
Minimum Unity: 2023.2 (0a18)
Package Dependencies
- com.unity.modules.ai (1.0.0)
📈 Improvements
- The ends of the NavMesh Link are solely determined by the Transforms they reference. If a link's end doesn't reference a Transform, it is placed in the scene according to the local Point position set for it. This differs from version 2.0.0 where the Point was used together with, and relative to, the end's Transform, which always pointed to some GameObject. NavMesh Links saved using version 2.0.0 will now find their endpoints in different positions compared to where they would be in version 2.0.0. NavMesh Links saved with versions earlier than 2.0.0 remain unaffected and will continue to function with their existing data as they used to.
- NavMesh Links saved with version 2.0.0 upgrade automatically to the correct format. Any link endpoint that has previously been defined by a position relative to a GameObject will now reference a new GameObject created as a child of the original transform and moved to the same world position that the endpoint had before.
- To modify the cost of an individual NavMesh Link you can now select "Cost Override" in the Inspector and then input the new value. NavMesh Links that are saved with this version cannot be loaded correctly with earlier versions of the package.
- Improved the user manual pages that describe the NavMesh Link and the NavMesh Surface components.
🔧 Bug Fixes
- Fixed navigation objects created from the GameObject menu being created in the scene instead of a prefab hierarchy when in prefab isolation mode.
- Fixed creation of navigation objects from the GameObject menu resulting in more than one operation on the undo stack.
- In accordance with other workflows, creating navigation objects from the GameObject menu now places them directly at the parent's position, instead of at the center of the scene view, when a parent is selected.
- Fixed regression whereby changing NavMeshLink activated or cost modifier properties in the Inspector would not update the link while in play mode.
- Added missing tooltips and support for localization throughout Inspector UI.
- The Navigation window was sometimes issuing errors related to the .png file used as icon.
- Added a cleanup step for Navigation components static data, so that the components support entering play mode without any domain reload.
- Fixed warnings in the console when undoing creation of navigation objects from the GameObject menu.
- Swapping the start and end points of a NavMeshLink via the Inspector now supports undo and redo.
- Moving the GameObject via the Re-center operation in the NavMesh Link Inspector now supports undo and redo.
- The deprecated properties `autoUpdatePositions`, `biDirectional`, `costOverride` and the deprecated `UpdatePositions` method of NavMeshLink correctly map now one-to-one to the members `autoUpdate`, `bidirectional`, `costModifier` and `UpdateLink`. This change removes any values that were stored by a serialized object specifically for the deprecated properties.
- Updated the use of several methods that have been moved between classes as of 2023.3.
- Added missing documentation for method parameters in `NavMeshComponentsGUIUtility`.
