From a886e1e126eaf426af7369e556b498ef00686ecd Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Mon, 20 Jul 2020 15:35:43 +0200 Subject: [PATCH 1/8] Update project to 2019.4.0f1 (LTS). --- Packages/manifest.json | 4 ++-- ProjectSettings/ProjectVersion.txt | 4 ++-- README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Packages/manifest.json b/Packages/manifest.json index f789928a..98c3e164 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -2,8 +2,8 @@ "dependencies": { "com.unity.ide.rider": "1.1.4", "com.unity.ide.visualstudio": "1.0.11", - "com.unity.ide.vscode": "1.1.4", - "com.unity.test-framework": "1.1.11", + "com.unity.ide.vscode": "1.2.0", + "com.unity.test-framework": "1.1.14", "com.unity.ugui": "1.0.0", "com.unity.modules.ai": "1.0.0", "com.unity.modules.androidjni": "1.0.0", diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt index 798259ba..d6e47130 100644 --- a/ProjectSettings/ProjectVersion.txt +++ b/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ -m_EditorVersion: 2019.3.0f6 -m_EditorVersionWithRevision: 2019.3.0f6 (27ab2135bccf) +m_EditorVersion: 2019.4.0f1 +m_EditorVersionWithRevision: 2019.4.0f1 (0af376155913) diff --git a/README.md b/README.md index 34065af0..727eb434 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released version, [2019.3](../../tree/2019.3), [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6). +> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version, [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6). # Components for Runtime NavMesh Building From 500e2928a7550e109ad4bf4c86a227c0af818fe8 Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Tue, 21 Jul 2020 13:05:05 +0200 Subject: [PATCH 2/8] Update README with information about the 2020.1 branch. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 727eb434..0ee0aad8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version, [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6). +> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version, [2020.1](../../tree/2020.1), [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6). # Components for Runtime NavMesh Building From 638f82de65b6044e5c9139c94e2698ed18c0c434 Mon Sep 17 00:00:00 2001 From: Maxime Plantady Date: Fri, 13 Nov 2020 10:56:22 -0500 Subject: [PATCH 3/8] 2020.1 compatibility --- .../Editor/NavMeshAssetManager.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs b/Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs index e824bf6c..f372c61b 100644 --- a/Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs +++ b/Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs @@ -41,11 +41,20 @@ static string GetAndEnsureTargetPath(NavMeshSurface surface) { var prefabStage = PrefabStageUtility.GetPrefabStage(surface.gameObject); var isPartOfPrefab = prefabStage != null && prefabStage.IsPartOfPrefabContents(surface.gameObject); - if (isPartOfPrefab && !string.IsNullOrEmpty(prefabStage.prefabAssetPath)) + + if (isPartOfPrefab) { - var prefabDirectoryName = Path.GetDirectoryName(prefabStage.prefabAssetPath); - if (!string.IsNullOrEmpty(prefabDirectoryName)) - targetPath = prefabDirectoryName; +#if UNITY_2020_1_OR_NEWER + var assetPath = prefabStage.assetPath; +#else + var assetPath = prefabStage.prefabAssetPath; +#endif + if (!string.IsNullOrEmpty(assetPath)) + { + var prefabDirectoryName = Path.GetDirectoryName(assetPath); + if (!string.IsNullOrEmpty(prefabDirectoryName)) + targetPath = prefabDirectoryName; + } } } if (!Directory.Exists(targetPath)) From c84826c9025a23819fc5ee505f453b5e4dcd536e Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Tue, 8 Dec 2020 23:50:54 +0100 Subject: [PATCH 4/8] Mention the package branch in the README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ee0aad8..68addb6a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version, [2020.1](../../tree/2020.1), [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6). +> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version, [2020.1](../../tree/2020.1), [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6).\ +> You can use the [package](../../tree/package) branch in Unity 2019.4 or newer in order to add this code to a project in the form of a package. # Components for Runtime NavMesh Building From b49831ec276038a41fc9b3c48f5c858f9c622516 Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Mon, 14 Dec 2020 12:43:27 +0100 Subject: [PATCH 5/8] Add link to the setup section of the README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 68addb6a..c73d066c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ > Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version, [2020.1](../../tree/2020.1), [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6).\ -> You can use the [package](../../tree/package) branch in Unity 2019.4 or newer in order to add this code to a project in the form of a package. +> You can use the [package](../../tree/package) branch in Unity 2019.4 or newer in order to add this code to a project in the form of a package. For instructions please refer to the [Setup](../../tree/package#setup) section of the README file. # Components for Runtime NavMesh Building From e29b9511470e9f0e19a32754223fdab29dde35c5 Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Mon, 14 Dec 2020 13:14:27 +0100 Subject: [PATCH 6/8] Mention the 2020.2 version in the README file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c73d066c..3c7cf643 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version, [2020.1](../../tree/2020.1), [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6).\ +> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version and up to 2020.2, [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6).\ > You can use the [package](../../tree/package) branch in Unity 2019.4 or newer in order to add this code to a project in the form of a package. For instructions please refer to the [Setup](../../tree/package#setup) section of the README file. # Components for Runtime NavMesh Building From 83c499597d830f8d970a3d7cc5b7d3afbbdd1e03 Mon Sep 17 00:00:00 2001 From: Maxime Plantady <32418388+mplantady@users.noreply.github.com> Date: Wed, 21 Jul 2021 10:58:34 -0400 Subject: [PATCH 7/8] Update readme with information about AI Navigation package --- README.md | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3c7cf643..172b5981 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,23 @@ -> Please use the branch matching the version of your Unity editor: [master](../../tree/master) for the latest released LTS version and up to 2020.2, [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6).\ -> You can use the [package](../../tree/package) branch in Unity 2019.4 or newer in order to add this code to a project in the form of a package. For instructions please refer to the [Setup](../../tree/package#setup) section of the README file. +# Status of the project -# Components for Runtime NavMesh Building +## Development +This project is now developed as part of the new [AI Navigation package](https://docs.unity3d.com/Packages/com.unity.ai.navigation@latest), please install this package to continue working with *NavMesh building components* workflow and get access to newer versions. + +The content of this repository will remain available for older Unity version, but no further development will be made here. + +## Questions and feature requests +Please use [AI & Navigation Previews](https://forum.unity.com/forums/ai-navigation-previews.122/) section of the forum to discuss about *AI Navigation* package and learn about new releases. + +[Unity roadmap](https://unity.com/roadmap/unity-platform/navigation-game-ai) is a portal where you can learn about *AI Navigation* future developments and share your feature requests. + + +## Bug Reporting +The issue section in this repository is closed, please use the [Unity built-in report system](https://unity3d.com/unity/qa/bug-reporting +) to report bugs you found in *AI Navigation* package. + +# NavMesh building components + +## Components for Runtime NavMesh Building Here we introduce four components for the navigation system: @@ -14,12 +30,15 @@ These components comprise the high level controls for building and using NavMesh Detailed information can be found in the [Documentation](Documentation) section or in the [NavMesh building components](https://docs.unity3d.com/Manual/NavMesh-BuildingComponents.html) section of the Unity Manual. -# How To Get Started +## How To Get Started Download and install Unity 5.6 or newer. Clone or download this repository and open the project in Unity. -Alternatively, you can copy the contents of `Assets/NavMeshComponents` to an existing project. Make sure to select a branch of the repository that matches the Unity version. +Alternatively, you can copy the contents of `Assets/NavMeshComponents` to an existing project. + +Make sure to select a branch of the repository that matches the Unity version: +> [master](../../tree/master) for the latest released LTS version and up to 2020.2, [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6).\ Additional examples are available in the `Assets/Examples` folder. The examples are provided "as is". They are neither generic nor robust, but serve as inspiration. @@ -27,7 +46,7 @@ The examples are provided "as is". They are neither generic nor robust, but serv _Note: During the beta cycle features and API are subject to change.\ **Make sure to backup an existing project before opening it with a beta build.**_ -# FAQ +## FAQ Q: Can I bake a NavMesh at runtime? A: Yes. From 41744345b26421464c448f0cb521e06e38a6770a Mon Sep 17 00:00:00 2001 From: Maxime Plantady <32418388+mplantady@users.noreply.github.com> Date: Tue, 27 Jul 2021 08:46:35 -0400 Subject: [PATCH 8/8] Reviewed readme --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 172b5981..c5055834 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,20 @@ # Status of the project ## Development -This project is now developed as part of the new [AI Navigation package](https://docs.unity3d.com/Packages/com.unity.ai.navigation@latest), please install this package to continue working with *NavMesh building components* workflow and get access to newer versions. +This project is now developed as part of the [AI Navigation](https://docs.unity3d.com/Packages/com.unity.ai.navigation@latest) package. Please add that package to your project in order to continue building the NavMesh using these components and to get access to newer versions. -The content of this repository will remain available for older Unity version, but no further development will be made here. +The content of this repository remains available for older Unity versions but no further development will be made here. ## Questions and feature requests -Please use [AI & Navigation Previews](https://forum.unity.com/forums/ai-navigation-previews.122/) section of the forum to discuss about *AI Navigation* package and learn about new releases. - -[Unity roadmap](https://unity.com/roadmap/unity-platform/navigation-game-ai) is a portal where you can learn about *AI Navigation* future developments and share your feature requests. +Please use the [AI & Navigation Previews](https://forum.unity.com/forums/ai-navigation-previews.122/) section of the forum to discuss about the **AI Navigation** package and to stay informed about major releases. +You can learn about the future developments of **AI Navigation** and also share your feature requests in the [Unity Platform Roadmap](https://unity.com/roadmap/unity-platform/navigation-game-ai) portal. ## Bug Reporting -The issue section in this repository is closed, please use the [Unity built-in report system](https://unity3d.com/unity/qa/bug-reporting -) to report bugs you found in *AI Navigation* package. +The _Issues_ section of this repository is closed. Please use the [Unity built-in report system](https://unity3d.com/unity/qa/bug-reporting +) to report any bugs that you find in the **AI Navigation** package. -# NavMesh building components +# Using This Repository ## Components for Runtime NavMesh Building @@ -38,7 +37,7 @@ Clone or download this repository and open the project in Unity. Alternatively, you can copy the contents of `Assets/NavMeshComponents` to an existing project. Make sure to select a branch of the repository that matches the Unity version: -> [master](../../tree/master) for the latest released LTS version and up to 2020.2, [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6).\ +> [master](../../tree/master) for 2020.3-LTS, [2019.3](../../tree/2019.3) for up to 2019.4-LTS, [2018.3](../../tree/2018.3) for up to 2018.4-LTS and 2019.2, [2018.2](../../tree/2018.2), [2018.1](../../tree/2018.1), [2017.2](../../tree/2017.2) for up to 2017.4-LTS, [2017.1](../../tree/2017.1), [5.6](../../tree/5.6). Additional examples are available in the `Assets/Examples` folder. The examples are provided "as is". They are neither generic nor robust, but serve as inspiration.