From e4146b0eacbda11a4109a20ca4f81012b2620d3f Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Tue, 8 Dec 2020 14:23:49 +0100 Subject: [PATCH 01/11] Structure the repository contents as a Unity package compatible with editor version 2019.4 or newer Change of license Add xml documentation to NavMeshLink, NavMeshModifierVolume and NavMeshSurface Co-authored-by: Maxime Plantady Co-authored-by: Adrian Turcanu --- .gitignore | 24 +- Assets/NavMeshComponents.meta | 9 - CHANGELOG.md | 13 + CHANGELOG.md.meta | 7 + .../ConnectingSurfaces.md | 0 .../Images/ConnectingSurfaces-Example.png | Bin .../Images/NavMeshLink-Example.png | Bin .../Images/NavMeshModifier-Example.png | Bin .../Images/NavMeshModifierVolume-Example.png | Bin .../Images/NavMeshSurface-Advanced.png | Bin .../Images/NavMeshSurface-Example.png | Bin .../README.md => Documentation~/Index.md | 2 +- .../NavMeshLink.md | 0 .../NavMeshModifier.md | 0 .../NavMeshModifierVolume.md | 0 .../NavMeshSurface.md | 0 .../Editor.meta => Editor.meta | 0 .../Editor => Editor}/NavMeshAssetManager.cs | 16 + .../NavMeshAssetManager.cs.meta | 0 .../NavMeshComponentsGUIUtility.cs | 34 + .../NavMeshComponentsGUIUtility.cs.meta | 0 .../Editor => Editor}/NavMeshLinkEditor.cs | 0 .../NavMeshLinkEditor.cs.meta | 0 .../NavMeshModifierEditor.cs | 0 .../NavMeshModifierEditor.cs.meta | 0 .../NavMeshModifierVolumeEditor.cs | 0 .../NavMeshModifierVolumeEditor.cs.meta | 0 .../Editor => Editor}/NavMeshSurfaceEditor.cs | 0 .../NavMeshSurfaceEditor.cs.meta | 0 ...ity.AI.Navigation.Components.Editor.asmdef | 0 ...I.Navigation.Components.Editor.asmdef.meta | 0 Assets/Gizmos.meta => Gizmos.meta | 0 .../Gizmos => Gizmos}/NavMeshLink Icon.png | Bin .../NavMeshLink Icon.png.meta | 0 .../NavMeshModifierVolume Icon.png | Bin .../NavMeshModifierVolume Icon.png.meta | 0 .../Gizmos => Gizmos}/NavMeshSurface Icon.png | Bin .../NavMeshSurface Icon.png.meta | 0 LICENSE | 22 +- Packages/manifest.json | 40 -- ProjectSettings/AudioManager.asset | 16 - ProjectSettings/ClusterInputManager.asset | 6 - ProjectSettings/DynamicsManager.asset | 18 - ProjectSettings/EditorBuildSettings.asset | 7 - ProjectSettings/EditorSettings.asset | 35 - ProjectSettings/GraphicsSettings.asset | 63 -- ProjectSettings/InputManager.asset | 295 --------- ProjectSettings/NavMeshAreas.asset | 104 --- ProjectSettings/NetworkManager.asset | 8 - ProjectSettings/Physics2DSettings.asset | 34 - ProjectSettings/PresetManager.asset | 6 - ProjectSettings/ProjectSettings.asset | 596 ------------------ ProjectSettings/ProjectVersion.txt | 2 - ProjectSettings/QualitySettings.asset | 180 ------ ProjectSettings/TagManager.asset | 43 -- ProjectSettings/TimeManager.asset | 9 - ProjectSettings/UnityConnectSettings.asset | 33 - ProjectSettings/VFXManager.asset | 11 - ProjectSettings/XRSettings.asset | 10 - README.md | 22 +- README.md.meta | 7 + .../Scripts.meta => Runtime.meta | 0 .../Scripts => Runtime}/NavMeshLink.cs | 24 +- .../Scripts => Runtime}/NavMeshLink.cs.meta | 0 .../Scripts => Runtime}/NavMeshModifier.cs | 0 .../NavMeshModifier.cs.meta | 0 .../NavMeshModifierVolume.cs | 12 + .../NavMeshModifierVolume.cs.meta | 0 .../Scripts => Runtime}/NavMeshSurface.cs | 80 ++- .../NavMeshSurface.cs.meta | 0 .../Unity.AI.Navigation.Components.asmdef | 10 +- ...Unity.AI.Navigation.Components.asmdef.meta | 0 Samples~/.sample.json | 5 + {Assets/Examples => Samples~}/Cube.prefab | 0 .../Examples => Samples~}/Cube.prefab.meta | 0 {Assets/Examples => Samples~}/Editor.meta | 0 .../Editor/NavMeshPrefabInstanceEditor.cs | 0 .../NavMeshPrefabInstanceEditor.cs.meta | 0 ...vigation.Components.Examples.Editor.asmdef | 0 ...ion.Components.Examples.Editor.asmdef.meta | 0 {Assets/Examples => Samples~}/Materials.meta | 0 .../Materials/brightgreen.mat | 0 .../Materials/brightgreen.mat.meta | 0 .../Examples => Samples~}/Materials/brown.mat | 0 .../Materials/brown.mat.meta | 0 .../Materials/crosshair.mat | 0 .../Materials/crosshair.mat.meta | 0 .../Examples => Samples~}/Materials/floor.mat | 0 .../Materials/floor.mat.meta | 0 .../Examples => Samples~}/Materials/green.mat | 0 .../Materials/green.mat.meta | 0 .../Examples => Samples~}/Materials/grey.mat | 0 .../Materials/grey.mat.meta | 0 .../Materials/modify_crosshair.png | Bin .../Materials/modify_crosshair.png.meta | 0 .../Examples => Samples~}/Materials/red.mat | 0 .../Materials/red.mat.meta | 0 .../Materials/yellow.mat | 0 .../Materials/yellow.mat.meta | 0 {Assets/Examples => Samples~}/Prefabs.meta | 0 .../Prefabs/BanyanTree.fbx | Bin .../Prefabs/BanyanTree.fbx.meta | 0 .../Prefabs/BanyanTree.prefab | 0 .../Prefabs/BanyanTree.prefab.meta | 0 .../Prefabs/DungeonTiles.meta | 0 .../Prefabs/DungeonTiles/Tile0.prefab | Bin .../Prefabs/DungeonTiles/Tile0.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile1.prefab | Bin .../Prefabs/DungeonTiles/Tile1.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile10.prefab | Bin .../Prefabs/DungeonTiles/Tile10.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile11.prefab | Bin .../Prefabs/DungeonTiles/Tile11.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile12.prefab | Bin .../Prefabs/DungeonTiles/Tile12.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile13.prefab | Bin .../Prefabs/DungeonTiles/Tile13.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile14.prefab | Bin .../Prefabs/DungeonTiles/Tile14.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile15.prefab | Bin .../Prefabs/DungeonTiles/Tile15.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile2.prefab | Bin .../Prefabs/DungeonTiles/Tile2.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile3.prefab | Bin .../Prefabs/DungeonTiles/Tile3.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile4.prefab | Bin .../Prefabs/DungeonTiles/Tile4.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile5.prefab | Bin .../Prefabs/DungeonTiles/Tile5.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile6.prefab | Bin .../Prefabs/DungeonTiles/Tile6.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile7.prefab | Bin .../Prefabs/DungeonTiles/Tile7.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile8.prefab | Bin .../Prefabs/DungeonTiles/Tile8.prefab.meta | 0 .../Prefabs/DungeonTiles/Tile9.prefab | Bin .../Prefabs/DungeonTiles/Tile9.prefab.meta | 0 .../Prefabs/GroundTile.prefab | 0 .../Prefabs/GroundTile.prefab.meta | 0 .../Prefabs/Materials.meta | 0 .../Prefabs/Materials/BanyanBark.mat | 0 .../Prefabs/Materials/BanyanBark.mat.meta | 0 .../Prefabs/Materials/BanyanBranches.mat | 0 .../Prefabs/Materials/BanyanBranches.mat.meta | 0 .../Prefabs/Plank.prefab | 0 .../Prefabs/Plank.prefab.meta | 0 {Assets/Examples => Samples~}/Scenes.meta | 0 .../Scenes/1_multiple_agent_sizes.meta | 0 .../Scenes/1_multiple_agent_sizes.unity | 0 .../Scenes/1_multiple_agent_sizes.unity.meta | 0 .../NavMesh-Geometry 1.asset | Bin .../NavMesh-Geometry 1.asset.meta | 0 .../NavMesh-Geometry.asset | Bin .../NavMesh-Geometry.asset.meta | 0 .../Scenes/2_drop_plank.unity | 0 .../Scenes/2_drop_plank.unity.meta | 0 .../Scenes/3_free_orientation.meta | 0 .../Scenes/3_free_orientation.unity | 0 .../Scenes/3_free_orientation.unity.meta | 0 .../Scenes/3_free_orientation/NavMesh.asset | Bin .../3_free_orientation/NavMesh.asset.meta | 0 .../Scenes/4_sliding_window_infinite.unity | 0 .../4_sliding_window_infinite.unity.meta | 0 .../Scenes/5_sliding_window_terrain.unity | 0 .../5_sliding_window_terrain.unity.meta | 0 .../Scenes/6_modify_mesh.unity | 0 .../Scenes/6_modify_mesh.unity.meta | 0 .../Scenes/7_dungeon.unity | 0 .../Scenes/7_dungeon.unity.meta | 0 .../Scenes/7b_dungeon_tile_prefabs.unity | 0 .../Scenes/7b_dungeon_tile_prefabs.unity.meta | 0 {Assets/Examples => Samples~}/Scripts.meta | 0 .../Scripts/AgentLinkMover.cs | 3 + .../Scripts/AgentLinkMover.cs.meta | 0 .../Scripts/ClickToMove.cs | 4 +- .../Scripts/ClickToMove.cs.meta | 0 .../Scripts/DestroyOnTrigger.cs | 4 +- .../Scripts/DestroyOnTrigger.cs.meta | 0 .../Scripts/DungeonManager.cs | 3 + .../Scripts/DungeonManager.cs.meta | 0 .../Scripts/EnableIffSleeping.cs | 6 +- .../Scripts/EnableIffSleeping.cs.meta | 0 .../Examples => Samples~}/Scripts/FreeCam.cs | 3 + .../Scripts/FreeCam.cs.meta | 0 .../Scripts/LocalNavMeshBuilder.cs | 12 +- .../Scripts/LocalNavMeshBuilder.cs.meta | 0 .../Examples => Samples~}/Scripts/MeshTool.cs | 4 +- .../Scripts/MeshTool.cs.meta | 0 .../Scripts/NavMeshPrefabInstance.cs | 9 +- .../Scripts/NavMeshPrefabInstance.cs.meta | 0 .../Scripts/NavMeshSourceTag.cs | 20 +- .../Scripts/NavMeshSourceTag.cs.meta | 0 .../Scripts/Oscillator.cs | 4 +- .../Scripts/Oscillator.cs.meta | 0 .../Scripts/RandomInstancing.cs | 7 +- .../Scripts/RandomInstancing.cs.meta | 0 .../Scripts/RandomWalk.cs | 4 +- .../Scripts/RandomWalk.cs.meta | 0 .../Scripts/SpawnPrefabOnKeyDown.cs | 3 + .../Scripts/SpawnPrefabOnKeyDown.cs.meta | 0 {Assets/Examples => Samples~}/Terrains.meta | 0 .../Terrains/Islands.asset | Bin .../Terrains/Islands.asset.meta | 0 .../Terrains/LightmapWithFog.png | Bin .../Terrains/LightmapWithFog.png.meta | 0 ....000,0.000,0.000),0.000,0.000.terrainlayer | 0 ...0.000,0.000),0.000,0.000.terrainlayer.meta | 0 ...y.AI.Navigation.Components.Examples.asmdef | 0 ...Navigation.Components.Examples.asmdef.meta | 0 Assets/Tests.meta => Tests.meta | 0 {Assets/Tests => Tests}/Editor.meta | 0 .../NavMeshModifierVolumeInPrefabTests.cs | 2 +- ...NavMeshModifierVolumeInPrefabTests.cs.meta | 0 .../Editor/NavMeshSurfaceInPrefabTests.cs | 2 +- .../NavMeshSurfaceInPrefabTests.cs.meta | 0 .../NavMeshSurfaceInPrefabVariantTests.cs | 2 +- ...NavMeshSurfaceInPrefabVariantTests.cs.meta | 0 .../Editor/PrefabSavingUtil.cs | 4 +- .../Editor/PrefabSavingUtil.cs.meta | 0 .../Editor/PrefabStageAutoSavingUtil.cs | 0 .../Editor/PrefabStageAutoSavingUtil.cs.meta | 0 ....Navigation.Components.Editor.Tests.asmdef | 0 ...gation.Components.Editor.Tests.asmdef.meta | 0 Assets/Examples.meta => Tests/Runtime.meta | 5 +- .../Runtime}/NavMeshSurfaceAgentTests.cs | 4 +- .../Runtime}/NavMeshSurfaceAgentTests.cs.meta | 0 .../Runtime}/NavMeshSurfaceLinkTests.cs | 0 .../Runtime}/NavMeshSurfaceLinkTests.cs.meta | 0 .../Runtime}/NavMeshSurfaceModifierTests.cs | 0 .../NavMeshSurfaceModifierTests.cs.meta | 0 .../NavMeshSurfaceModifierVolumeTests.cs | 0 .../NavMeshSurfaceModifierVolumeTests.cs.meta | 0 .../Runtime}/NavMeshSurfaceTests.cs | 8 +- .../Runtime}/NavMeshSurfaceTests.cs.meta | 0 ...nity.AI.Navigation.Components.Tests.asmdef | 10 +- ...AI.Navigation.Components.Tests.asmdef.meta | 0 package.json | 10 + package.json.meta | 7 + 238 files changed, 321 insertions(+), 1622 deletions(-) delete mode 100644 Assets/NavMeshComponents.meta create mode 100644 CHANGELOG.md create mode 100644 CHANGELOG.md.meta rename {Documentation => Documentation~}/ConnectingSurfaces.md (100%) rename {Documentation => Documentation~}/Images/ConnectingSurfaces-Example.png (100%) rename {Documentation => Documentation~}/Images/NavMeshLink-Example.png (100%) rename {Documentation => Documentation~}/Images/NavMeshModifier-Example.png (100%) rename {Documentation => Documentation~}/Images/NavMeshModifierVolume-Example.png (100%) rename {Documentation => Documentation~}/Images/NavMeshSurface-Advanced.png (100%) rename {Documentation => Documentation~}/Images/NavMeshSurface-Example.png (100%) rename Documentation/README.md => Documentation~/Index.md (96%) rename {Documentation => Documentation~}/NavMeshLink.md (100%) rename {Documentation => Documentation~}/NavMeshModifier.md (100%) rename {Documentation => Documentation~}/NavMeshModifierVolume.md (100%) rename {Documentation => Documentation~}/NavMeshSurface.md (100%) rename Assets/NavMeshComponents/Editor.meta => Editor.meta (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshAssetManager.cs (95%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshAssetManager.cs.meta (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshComponentsGUIUtility.cs (79%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshComponentsGUIUtility.cs.meta (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshLinkEditor.cs (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshLinkEditor.cs.meta (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshModifierEditor.cs (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshModifierEditor.cs.meta (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshModifierVolumeEditor.cs (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshModifierVolumeEditor.cs.meta (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshSurfaceEditor.cs (100%) rename {Assets/NavMeshComponents/Editor => Editor}/NavMeshSurfaceEditor.cs.meta (100%) rename Assets/NavMeshComponents/Editor/NavMeshComponentsEditor.asmdef => Editor/Unity.AI.Navigation.Components.Editor.asmdef (100%) rename Assets/NavMeshComponents/Editor/NavMeshComponentsEditor.asmdef.meta => Editor/Unity.AI.Navigation.Components.Editor.asmdef.meta (100%) rename Assets/Gizmos.meta => Gizmos.meta (100%) rename {Assets/Gizmos => Gizmos}/NavMeshLink Icon.png (100%) rename {Assets/Gizmos => Gizmos}/NavMeshLink Icon.png.meta (100%) rename {Assets/Gizmos => Gizmos}/NavMeshModifierVolume Icon.png (100%) rename {Assets/Gizmos => Gizmos}/NavMeshModifierVolume Icon.png.meta (100%) rename {Assets/Gizmos => Gizmos}/NavMeshSurface Icon.png (100%) rename {Assets/Gizmos => Gizmos}/NavMeshSurface Icon.png.meta (100%) delete mode 100644 Packages/manifest.json delete mode 100644 ProjectSettings/AudioManager.asset delete mode 100644 ProjectSettings/ClusterInputManager.asset delete mode 100644 ProjectSettings/DynamicsManager.asset delete mode 100644 ProjectSettings/EditorBuildSettings.asset delete mode 100644 ProjectSettings/EditorSettings.asset delete mode 100644 ProjectSettings/GraphicsSettings.asset delete mode 100644 ProjectSettings/InputManager.asset delete mode 100644 ProjectSettings/NavMeshAreas.asset delete mode 100644 ProjectSettings/NetworkManager.asset delete mode 100644 ProjectSettings/Physics2DSettings.asset delete mode 100644 ProjectSettings/PresetManager.asset delete mode 100644 ProjectSettings/ProjectSettings.asset delete mode 100644 ProjectSettings/ProjectVersion.txt delete mode 100644 ProjectSettings/QualitySettings.asset delete mode 100644 ProjectSettings/TagManager.asset delete mode 100644 ProjectSettings/TimeManager.asset delete mode 100644 ProjectSettings/UnityConnectSettings.asset delete mode 100644 ProjectSettings/VFXManager.asset delete mode 100644 ProjectSettings/XRSettings.asset create mode 100644 README.md.meta rename Assets/NavMeshComponents/Scripts.meta => Runtime.meta (100%) rename {Assets/NavMeshComponents/Scripts => Runtime}/NavMeshLink.cs (74%) rename {Assets/NavMeshComponents/Scripts => Runtime}/NavMeshLink.cs.meta (100%) rename {Assets/NavMeshComponents/Scripts => Runtime}/NavMeshModifier.cs (100%) rename {Assets/NavMeshComponents/Scripts => Runtime}/NavMeshModifier.cs.meta (100%) rename {Assets/NavMeshComponents/Scripts => Runtime}/NavMeshModifierVolume.cs (50%) rename {Assets/NavMeshComponents/Scripts => Runtime}/NavMeshModifierVolume.cs.meta (100%) rename {Assets/NavMeshComponents/Scripts => Runtime}/NavMeshSurface.cs (74%) rename {Assets/NavMeshComponents/Scripts => Runtime}/NavMeshSurface.cs.meta (100%) rename Assets/NavMeshComponents/Scripts/NavMeshComponents.asmdef => Runtime/Unity.AI.Navigation.Components.asmdef (52%) rename Assets/NavMeshComponents/Scripts/NavMeshComponents.asmdef.meta => Runtime/Unity.AI.Navigation.Components.asmdef.meta (100%) create mode 100644 Samples~/.sample.json rename {Assets/Examples => Samples~}/Cube.prefab (100%) rename {Assets/Examples => Samples~}/Cube.prefab.meta (100%) rename {Assets/Examples => Samples~}/Editor.meta (100%) rename {Assets/Examples => Samples~}/Editor/NavMeshPrefabInstanceEditor.cs (100%) rename {Assets/Examples => Samples~}/Editor/NavMeshPrefabInstanceEditor.cs.meta (100%) rename Assets/Examples/Editor/NavMeshComponentsExamplesEditor.asmdef => Samples~/Editor/Unity.AI.Navigation.Components.Examples.Editor.asmdef (100%) rename Assets/Examples/Editor/NavMeshComponentsExamplesEditor.asmdef.meta => Samples~/Editor/Unity.AI.Navigation.Components.Examples.Editor.asmdef.meta (100%) rename {Assets/Examples => Samples~}/Materials.meta (100%) rename {Assets/Examples => Samples~}/Materials/brightgreen.mat (100%) rename {Assets/Examples => Samples~}/Materials/brightgreen.mat.meta (100%) rename {Assets/Examples => Samples~}/Materials/brown.mat (100%) rename {Assets/Examples => Samples~}/Materials/brown.mat.meta (100%) rename {Assets/Examples => Samples~}/Materials/crosshair.mat (100%) rename {Assets/Examples => Samples~}/Materials/crosshair.mat.meta (100%) rename {Assets/Examples => Samples~}/Materials/floor.mat (100%) rename {Assets/Examples => Samples~}/Materials/floor.mat.meta (100%) rename {Assets/Examples => Samples~}/Materials/green.mat (100%) rename {Assets/Examples => Samples~}/Materials/green.mat.meta (100%) rename {Assets/Examples => Samples~}/Materials/grey.mat (100%) rename {Assets/Examples => Samples~}/Materials/grey.mat.meta (100%) rename {Assets/Examples => Samples~}/Materials/modify_crosshair.png (100%) rename {Assets/Examples => Samples~}/Materials/modify_crosshair.png.meta (100%) rename {Assets/Examples => Samples~}/Materials/red.mat (100%) rename {Assets/Examples => Samples~}/Materials/red.mat.meta (100%) rename {Assets/Examples => Samples~}/Materials/yellow.mat (100%) rename {Assets/Examples => Samples~}/Materials/yellow.mat.meta (100%) rename {Assets/Examples => Samples~}/Prefabs.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/BanyanTree.fbx (100%) rename {Assets/Examples => Samples~}/Prefabs/BanyanTree.fbx.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/BanyanTree.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/BanyanTree.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile0.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile0.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile1.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile1.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile10.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile10.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile11.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile11.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile12.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile12.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile13.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile13.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile14.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile14.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile15.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile15.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile2.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile2.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile3.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile3.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile4.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile4.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile5.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile5.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile6.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile6.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile7.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile7.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile8.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile8.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile9.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/DungeonTiles/Tile9.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/GroundTile.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/GroundTile.prefab.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/Materials.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/Materials/BanyanBark.mat (100%) rename {Assets/Examples => Samples~}/Prefabs/Materials/BanyanBark.mat.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/Materials/BanyanBranches.mat (100%) rename {Assets/Examples => Samples~}/Prefabs/Materials/BanyanBranches.mat.meta (100%) rename {Assets/Examples => Samples~}/Prefabs/Plank.prefab (100%) rename {Assets/Examples => Samples~}/Prefabs/Plank.prefab.meta (100%) rename {Assets/Examples => Samples~}/Scenes.meta (100%) rename {Assets/Examples => Samples~}/Scenes/1_multiple_agent_sizes.meta (100%) rename {Assets/Examples => Samples~}/Scenes/1_multiple_agent_sizes.unity (100%) rename {Assets/Examples => Samples~}/Scenes/1_multiple_agent_sizes.unity.meta (100%) rename {Assets/Examples => Samples~}/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset (100%) rename {Assets/Examples => Samples~}/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset.meta (100%) rename {Assets/Examples => Samples~}/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset (100%) rename {Assets/Examples => Samples~}/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset.meta (100%) rename {Assets/Examples => Samples~}/Scenes/2_drop_plank.unity (100%) rename {Assets/Examples => Samples~}/Scenes/2_drop_plank.unity.meta (100%) rename {Assets/Examples => Samples~}/Scenes/3_free_orientation.meta (100%) rename {Assets/Examples => Samples~}/Scenes/3_free_orientation.unity (100%) rename {Assets/Examples => Samples~}/Scenes/3_free_orientation.unity.meta (100%) rename {Assets/Examples => Samples~}/Scenes/3_free_orientation/NavMesh.asset (100%) rename {Assets/Examples => Samples~}/Scenes/3_free_orientation/NavMesh.asset.meta (100%) rename {Assets/Examples => Samples~}/Scenes/4_sliding_window_infinite.unity (100%) rename {Assets/Examples => Samples~}/Scenes/4_sliding_window_infinite.unity.meta (100%) rename {Assets/Examples => Samples~}/Scenes/5_sliding_window_terrain.unity (100%) rename {Assets/Examples => Samples~}/Scenes/5_sliding_window_terrain.unity.meta (100%) rename {Assets/Examples => Samples~}/Scenes/6_modify_mesh.unity (100%) rename {Assets/Examples => Samples~}/Scenes/6_modify_mesh.unity.meta (100%) rename {Assets/Examples => Samples~}/Scenes/7_dungeon.unity (100%) rename {Assets/Examples => Samples~}/Scenes/7_dungeon.unity.meta (100%) rename {Assets/Examples => Samples~}/Scenes/7b_dungeon_tile_prefabs.unity (100%) rename {Assets/Examples => Samples~}/Scenes/7b_dungeon_tile_prefabs.unity.meta (100%) rename {Assets/Examples => Samples~}/Scripts.meta (100%) rename {Assets/Examples => Samples~}/Scripts/AgentLinkMover.cs (96%) rename {Assets/Examples => Samples~}/Scripts/AgentLinkMover.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/ClickToMove.cs (85%) rename {Assets/Examples => Samples~}/Scripts/ClickToMove.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/DestroyOnTrigger.cs (68%) rename {Assets/Examples => Samples~}/Scripts/DestroyOnTrigger.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/DungeonManager.cs (94%) rename {Assets/Examples => Samples~}/Scripts/DungeonManager.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/EnableIffSleeping.cs (80%) rename {Assets/Examples => Samples~}/Scripts/EnableIffSleeping.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/FreeCam.cs (95%) rename {Assets/Examples => Samples~}/Scripts/FreeCam.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/LocalNavMeshBuilder.cs (90%) rename {Assets/Examples => Samples~}/Scripts/LocalNavMeshBuilder.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/MeshTool.cs (96%) rename {Assets/Examples => Samples~}/Scripts/MeshTool.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/NavMeshPrefabInstance.cs (93%) rename {Assets/Examples => Samples~}/Scripts/NavMeshPrefabInstance.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/NavMeshSourceTag.cs (77%) rename {Assets/Examples => Samples~}/Scripts/NavMeshSourceTag.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/Oscillator.cs (83%) rename {Assets/Examples => Samples~}/Scripts/Oscillator.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/RandomInstancing.cs (94%) rename {Assets/Examples => Samples~}/Scripts/RandomInstancing.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/RandomWalk.cs (86%) rename {Assets/Examples => Samples~}/Scripts/RandomWalk.cs.meta (100%) rename {Assets/Examples => Samples~}/Scripts/SpawnPrefabOnKeyDown.cs (82%) rename {Assets/Examples => Samples~}/Scripts/SpawnPrefabOnKeyDown.cs.meta (100%) rename {Assets/Examples => Samples~}/Terrains.meta (100%) rename {Assets/Examples => Samples~}/Terrains/Islands.asset (100%) rename {Assets/Examples => Samples~}/Terrains/Islands.asset.meta (100%) rename {Assets/Examples => Samples~}/Terrains/LightmapWithFog.png (100%) rename {Assets/Examples => Samples~}/Terrains/LightmapWithFog.png.meta (100%) rename {Assets/Examples => Samples~}/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer (100%) rename {Assets/Examples => Samples~}/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer.meta (100%) rename Assets/Examples/NavMeshComponentsExamples.asmdef => Samples~/Unity.AI.Navigation.Components.Examples.asmdef (100%) rename Assets/Examples/NavMeshComponentsExamples.asmdef.meta => Samples~/Unity.AI.Navigation.Components.Examples.asmdef.meta (100%) rename Assets/Tests.meta => Tests.meta (100%) rename {Assets/Tests => Tests}/Editor.meta (100%) rename {Assets/Tests => Tests}/Editor/NavMeshModifierVolumeInPrefabTests.cs (99%) rename {Assets/Tests => Tests}/Editor/NavMeshModifierVolumeInPrefabTests.cs.meta (100%) rename {Assets/Tests => Tests}/Editor/NavMeshSurfaceInPrefabTests.cs (99%) rename {Assets/Tests => Tests}/Editor/NavMeshSurfaceInPrefabTests.cs.meta (100%) rename {Assets/Tests => Tests}/Editor/NavMeshSurfaceInPrefabVariantTests.cs (99%) rename {Assets/Tests => Tests}/Editor/NavMeshSurfaceInPrefabVariantTests.cs.meta (100%) rename {Assets/Tests => Tests}/Editor/PrefabSavingUtil.cs (93%) rename {Assets/Tests => Tests}/Editor/PrefabSavingUtil.cs.meta (100%) rename {Assets/Tests => Tests}/Editor/PrefabStageAutoSavingUtil.cs (100%) rename {Assets/Tests => Tests}/Editor/PrefabStageAutoSavingUtil.cs.meta (100%) rename Assets/Tests/Editor/NavMeshComponentsTestsEditmode.asmdef => Tests/Editor/Unity.AI.Navigation.Components.Editor.Tests.asmdef (100%) rename Assets/Tests/Editor/NavMeshComponentsTestsEditmode.asmdef.meta => Tests/Editor/Unity.AI.Navigation.Components.Editor.Tests.asmdef.meta (100%) rename Assets/Examples.meta => Tests/Runtime.meta (58%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceAgentTests.cs (99%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceAgentTests.cs.meta (100%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceLinkTests.cs (100%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceLinkTests.cs.meta (100%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceModifierTests.cs (100%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceModifierTests.cs.meta (100%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceModifierVolumeTests.cs (100%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceModifierVolumeTests.cs.meta (100%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceTests.cs (95%) rename {Assets/Tests => Tests/Runtime}/NavMeshSurfaceTests.cs.meta (100%) rename Assets/Tests/NavMeshComponentsTestsPlaymode.asmdef => Tests/Runtime/Unity.AI.Navigation.Components.Tests.asmdef (58%) rename Assets/Tests/NavMeshComponentsTestsPlaymode.asmdef.meta => Tests/Runtime/Unity.AI.Navigation.Components.Tests.asmdef.meta (100%) create mode 100644 package.json create mode 100644 package.json.meta diff --git a/.gitignore b/.gitignore index fde314fc..9d69d944 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,12 @@ -**/Library/ -**/Temp/ -**/obj/ - +*~ +.DS_Store +.npmrc +.idea/ +npm-debug.log +!Documentation~ +!Samples~ **/.vscode/ **/.vs - -**/Assets/Plugins/* -**/Assets/Plugins.meta - *.idea *.csproj *.sln @@ -15,12 +14,7 @@ *.userprefs *.app *.VC.* -.DS_Store -*~ *.swp - -.vs/ -build/* *.rsp -*.pyc -/Logs +*.bak +*.bak.meta diff --git a/Assets/NavMeshComponents.meta b/Assets/NavMeshComponents.meta deleted file mode 100644 index 379ae14b..00000000 --- a/Assets/NavMeshComponents.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 90490f1de0cc846679dcec6f99663653 -folderAsset: yes -timeCreated: 1477656493 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..57cf5e04 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog +All notable changes to this package will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +## [0.1.0] - 2020-12-08 + +This is the first release of the *NavMesh Components* repository in the form of a Unity package. + +### Changes +* The [license](LICENSE.md) has changed. +* The folder structure has changed in accordance to the requirements of the Unity standards for packages. diff --git a/CHANGELOG.md.meta b/CHANGELOG.md.meta new file mode 100644 index 00000000..5447ef20 --- /dev/null +++ b/CHANGELOG.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ccdfde25179bd45acb7145793b3b87f8 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Documentation/ConnectingSurfaces.md b/Documentation~/ConnectingSurfaces.md similarity index 100% rename from Documentation/ConnectingSurfaces.md rename to Documentation~/ConnectingSurfaces.md diff --git a/Documentation/Images/ConnectingSurfaces-Example.png b/Documentation~/Images/ConnectingSurfaces-Example.png similarity index 100% rename from Documentation/Images/ConnectingSurfaces-Example.png rename to Documentation~/Images/ConnectingSurfaces-Example.png diff --git a/Documentation/Images/NavMeshLink-Example.png b/Documentation~/Images/NavMeshLink-Example.png similarity index 100% rename from Documentation/Images/NavMeshLink-Example.png rename to Documentation~/Images/NavMeshLink-Example.png diff --git a/Documentation/Images/NavMeshModifier-Example.png b/Documentation~/Images/NavMeshModifier-Example.png similarity index 100% rename from Documentation/Images/NavMeshModifier-Example.png rename to Documentation~/Images/NavMeshModifier-Example.png diff --git a/Documentation/Images/NavMeshModifierVolume-Example.png b/Documentation~/Images/NavMeshModifierVolume-Example.png similarity index 100% rename from Documentation/Images/NavMeshModifierVolume-Example.png rename to Documentation~/Images/NavMeshModifierVolume-Example.png diff --git a/Documentation/Images/NavMeshSurface-Advanced.png b/Documentation~/Images/NavMeshSurface-Advanced.png similarity index 100% rename from Documentation/Images/NavMeshSurface-Advanced.png rename to Documentation~/Images/NavMeshSurface-Advanced.png diff --git a/Documentation/Images/NavMeshSurface-Example.png b/Documentation~/Images/NavMeshSurface-Example.png similarity index 100% rename from Documentation/Images/NavMeshSurface-Example.png rename to Documentation~/Images/NavMeshSurface-Example.png diff --git a/Documentation/README.md b/Documentation~/Index.md similarity index 96% rename from Documentation/README.md rename to Documentation~/Index.md index 2a58a5c7..6b06dbc8 100644 --- a/Documentation/README.md +++ b/Documentation~/Index.md @@ -10,6 +10,6 @@ Here we introduce four high level components for the navigation system: These components comprise the high level controls for building and using NavMeshes at runtime as well as edit time. ## Techniques and Patterns -* [Connecting NavMesh Surfaces](ConnectingSurfaces.md) using the NavMeshLink compoenent. +* [Connecting NavMesh Surfaces](ConnectingSurfaces.md) using the NavMeshLink component. diff --git a/Documentation/NavMeshLink.md b/Documentation~/NavMeshLink.md similarity index 100% rename from Documentation/NavMeshLink.md rename to Documentation~/NavMeshLink.md diff --git a/Documentation/NavMeshModifier.md b/Documentation~/NavMeshModifier.md similarity index 100% rename from Documentation/NavMeshModifier.md rename to Documentation~/NavMeshModifier.md diff --git a/Documentation/NavMeshModifierVolume.md b/Documentation~/NavMeshModifierVolume.md similarity index 100% rename from Documentation/NavMeshModifierVolume.md rename to Documentation~/NavMeshModifierVolume.md diff --git a/Documentation/NavMeshSurface.md b/Documentation~/NavMeshSurface.md similarity index 100% rename from Documentation/NavMeshSurface.md rename to Documentation~/NavMeshSurface.md diff --git a/Assets/NavMeshComponents/Editor.meta b/Editor.meta similarity index 100% rename from Assets/NavMeshComponents/Editor.meta rename to Editor.meta diff --git a/Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs b/Editor/NavMeshAssetManager.cs similarity index 95% rename from Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs rename to Editor/NavMeshAssetManager.cs index f372c61b..500bcee2 100644 --- a/Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs +++ b/Editor/NavMeshAssetManager.cs @@ -7,6 +7,9 @@ namespace UnityEditor.AI { + /// + /// Manages assets and baking operation of the navmesh + /// public class NavMeshAssetManager : ScriptableSingleton { internal struct AsyncBakeOperation @@ -108,6 +111,10 @@ void ClearSurface(NavMeshSurface navSurface) AssetDatabase.DeleteAsset(AssetDatabase.GetAssetPath(assetToDelete)); } + /// + /// Start baking a list of NavMeshSurface + /// + /// List of surfaces public void StartBakingSurfaces(UnityEngine.Object[] surfaces) { // Remove first to avoid double registration of the callback @@ -164,6 +171,11 @@ void UpdateAsyncBuildOperations() EditorApplication.update -= UpdateAsyncBuildOperations; } + /// + /// Checks if an operation of baking is in progress for a specified surface + /// + /// A navmesh surface + /// True if the specified surface is baking public bool IsSurfaceBaking(NavMeshSurface surface) { if (surface == null) @@ -181,6 +193,10 @@ public bool IsSurfaceBaking(NavMeshSurface surface) return false; } + /// + /// Clear navmesh surfaces + /// + /// List of surfaces public void ClearSurfaces(UnityEngine.Object[] surfaces) { foreach (NavMeshSurface s in surfaces) diff --git a/Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs.meta b/Editor/NavMeshAssetManager.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshAssetManager.cs.meta rename to Editor/NavMeshAssetManager.cs.meta diff --git a/Assets/NavMeshComponents/Editor/NavMeshComponentsGUIUtility.cs b/Editor/NavMeshComponentsGUIUtility.cs similarity index 79% rename from Assets/NavMeshComponents/Editor/NavMeshComponentsGUIUtility.cs rename to Editor/NavMeshComponentsGUIUtility.cs index 0d3a676b..b489fda7 100644 --- a/Assets/NavMeshComponents/Editor/NavMeshComponentsGUIUtility.cs +++ b/Editor/NavMeshComponentsGUIUtility.cs @@ -3,8 +3,12 @@ namespace UnityEditor.AI { + /// Class containing a set of utility functions meant for presenting information from the NavMeshComponents into the GUI. public static class NavMeshComponentsGUIUtility { + /// Displays a GUI element for selecting the area type used by a , , or . + /// + /// public static void AreaPopup(string labelName, SerializedProperty areaProperty) { var areaIndex = -1; @@ -35,6 +39,9 @@ public static void AreaPopup(string labelName, SerializedProperty areaProperty) EditorGUI.EndProperty(); } + /// Displays a GUI element for selecting the agent type used by a or . + /// + /// public static void AgentTypePopup(string labelName, SerializedProperty agentTypeID) { var index = -1; @@ -82,6 +89,9 @@ public static void AgentTypePopup(string labelName, SerializedProperty agentType // It is used to describe which agents modifiers apply to. // There is a special case of "None" which is an empty array. // There is a special case of "All" which is an array of length 1, and value of -1. + /// Displays a GUI element for selecting multiple agent types for which a or can influence the NavMesh. + /// + /// public static void AgentMaskPopup(string labelName, SerializedProperty agentMask) { // Contents of the dropdown box. @@ -127,6 +137,10 @@ public static void AgentMaskPopup(string labelName, SerializedProperty agentMask EditorGUI.EndProperty(); } + /// Creates a new GameObject as a child of another one and selects it immediately. + /// + /// + /// public static GameObject CreateAndSelectGameObject(string suggestedName, GameObject parent) { var parentTransform = parent != null ? parent.transform : null; @@ -142,11 +156,16 @@ public static GameObject CreateAndSelectGameObject(string suggestedName, GameObj return child; } + /// Checks whether a serialized property has all the bits set when intepreted as a bitmask. + /// + /// static bool IsAll(SerializedProperty agentMask) { return agentMask.arraySize == 1 && agentMask.GetArrayElementAtIndex(0).intValue == -1; } + /// Marks one agent type as being selected or not. + /// static void ToggleAgentMaskItem(object userData) { var args = (object[])userData; @@ -157,6 +176,10 @@ static void ToggleAgentMaskItem(object userData) ToggleAgentMaskItem(agentMask, agentTypeID, value); } + /// Marks one agent type as being selected or not. + /// + /// + /// static void ToggleAgentMaskItem(SerializedProperty agentMask, int agentTypeID, bool value) { if (agentMask.hasMultipleDifferentValues) @@ -200,6 +223,8 @@ static void ToggleAgentMaskItem(SerializedProperty agentMask, int agentTypeID, b agentMask.serializedObject.ApplyModifiedProperties(); } + /// Marks all agent types as not being selected. + /// static void SetAgentMaskNone(object data) { var agentMask = (SerializedProperty)data; @@ -207,6 +232,8 @@ static void SetAgentMaskNone(object data) agentMask.serializedObject.ApplyModifiedProperties(); } + /// Marks all agent types as being selected. + /// static void SetAgentMaskAll(object data) { var agentMask = (SerializedProperty)data; @@ -216,6 +243,9 @@ static void SetAgentMaskAll(object data) agentMask.serializedObject.ApplyModifiedProperties(); } + /// Obtains one string that represents the current selection of agent types. + /// + /// One string that represents the current selection of agent types. static string GetAgentMaskLabelName(SerializedProperty agentMask) { if (agentMask.arraySize == 0) @@ -244,6 +274,10 @@ static string GetAgentMaskLabelName(SerializedProperty agentMask) return "Mixed..."; } + /// Checks whether a certain agent type is selected. + /// + /// + /// static bool AgentMaskHasSelectedAgentTypeID(SerializedProperty agentMask, int agentTypeID) { for (var j = 0; j < agentMask.arraySize; j++) diff --git a/Assets/NavMeshComponents/Editor/NavMeshComponentsGUIUtility.cs.meta b/Editor/NavMeshComponentsGUIUtility.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshComponentsGUIUtility.cs.meta rename to Editor/NavMeshComponentsGUIUtility.cs.meta diff --git a/Assets/NavMeshComponents/Editor/NavMeshLinkEditor.cs b/Editor/NavMeshLinkEditor.cs similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshLinkEditor.cs rename to Editor/NavMeshLinkEditor.cs diff --git a/Assets/NavMeshComponents/Editor/NavMeshLinkEditor.cs.meta b/Editor/NavMeshLinkEditor.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshLinkEditor.cs.meta rename to Editor/NavMeshLinkEditor.cs.meta diff --git a/Assets/NavMeshComponents/Editor/NavMeshModifierEditor.cs b/Editor/NavMeshModifierEditor.cs similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshModifierEditor.cs rename to Editor/NavMeshModifierEditor.cs diff --git a/Assets/NavMeshComponents/Editor/NavMeshModifierEditor.cs.meta b/Editor/NavMeshModifierEditor.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshModifierEditor.cs.meta rename to Editor/NavMeshModifierEditor.cs.meta diff --git a/Assets/NavMeshComponents/Editor/NavMeshModifierVolumeEditor.cs b/Editor/NavMeshModifierVolumeEditor.cs similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshModifierVolumeEditor.cs rename to Editor/NavMeshModifierVolumeEditor.cs diff --git a/Assets/NavMeshComponents/Editor/NavMeshModifierVolumeEditor.cs.meta b/Editor/NavMeshModifierVolumeEditor.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshModifierVolumeEditor.cs.meta rename to Editor/NavMeshModifierVolumeEditor.cs.meta diff --git a/Assets/NavMeshComponents/Editor/NavMeshSurfaceEditor.cs b/Editor/NavMeshSurfaceEditor.cs similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshSurfaceEditor.cs rename to Editor/NavMeshSurfaceEditor.cs diff --git a/Assets/NavMeshComponents/Editor/NavMeshSurfaceEditor.cs.meta b/Editor/NavMeshSurfaceEditor.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshSurfaceEditor.cs.meta rename to Editor/NavMeshSurfaceEditor.cs.meta diff --git a/Assets/NavMeshComponents/Editor/NavMeshComponentsEditor.asmdef b/Editor/Unity.AI.Navigation.Components.Editor.asmdef similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshComponentsEditor.asmdef rename to Editor/Unity.AI.Navigation.Components.Editor.asmdef diff --git a/Assets/NavMeshComponents/Editor/NavMeshComponentsEditor.asmdef.meta b/Editor/Unity.AI.Navigation.Components.Editor.asmdef.meta similarity index 100% rename from Assets/NavMeshComponents/Editor/NavMeshComponentsEditor.asmdef.meta rename to Editor/Unity.AI.Navigation.Components.Editor.asmdef.meta diff --git a/Assets/Gizmos.meta b/Gizmos.meta similarity index 100% rename from Assets/Gizmos.meta rename to Gizmos.meta diff --git a/Assets/Gizmos/NavMeshLink Icon.png b/Gizmos/NavMeshLink Icon.png similarity index 100% rename from Assets/Gizmos/NavMeshLink Icon.png rename to Gizmos/NavMeshLink Icon.png diff --git a/Assets/Gizmos/NavMeshLink Icon.png.meta b/Gizmos/NavMeshLink Icon.png.meta similarity index 100% rename from Assets/Gizmos/NavMeshLink Icon.png.meta rename to Gizmos/NavMeshLink Icon.png.meta diff --git a/Assets/Gizmos/NavMeshModifierVolume Icon.png b/Gizmos/NavMeshModifierVolume Icon.png similarity index 100% rename from Assets/Gizmos/NavMeshModifierVolume Icon.png rename to Gizmos/NavMeshModifierVolume Icon.png diff --git a/Assets/Gizmos/NavMeshModifierVolume Icon.png.meta b/Gizmos/NavMeshModifierVolume Icon.png.meta similarity index 100% rename from Assets/Gizmos/NavMeshModifierVolume Icon.png.meta rename to Gizmos/NavMeshModifierVolume Icon.png.meta diff --git a/Assets/Gizmos/NavMeshSurface Icon.png b/Gizmos/NavMeshSurface Icon.png similarity index 100% rename from Assets/Gizmos/NavMeshSurface Icon.png rename to Gizmos/NavMeshSurface Icon.png diff --git a/Assets/Gizmos/NavMeshSurface Icon.png.meta b/Gizmos/NavMeshSurface Icon.png.meta similarity index 100% rename from Assets/Gizmos/NavMeshSurface Icon.png.meta rename to Gizmos/NavMeshSurface Icon.png.meta diff --git a/LICENSE b/LICENSE index ea2052f0..0d2a3e68 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,5 @@ -The MIT License (MIT) +com.unity.ai.navigation.components copyright © 2016 Unity Technologies ApS -Copyright (c) 2016, Unity Technologies +Licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. \ No newline at end of file diff --git a/Packages/manifest.json b/Packages/manifest.json deleted file mode 100644 index 98c3e164..00000000 --- a/Packages/manifest.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "dependencies": { - "com.unity.ide.rider": "1.1.4", - "com.unity.ide.visualstudio": "1.0.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", - "com.unity.modules.animation": "1.0.0", - "com.unity.modules.assetbundle": "1.0.0", - "com.unity.modules.audio": "1.0.0", - "com.unity.modules.cloth": "1.0.0", - "com.unity.modules.director": "1.0.0", - "com.unity.modules.imageconversion": "1.0.0", - "com.unity.modules.imgui": "1.0.0", - "com.unity.modules.jsonserialize": "1.0.0", - "com.unity.modules.particlesystem": "1.0.0", - "com.unity.modules.physics": "1.0.0", - "com.unity.modules.physics2d": "1.0.0", - "com.unity.modules.screencapture": "1.0.0", - "com.unity.modules.terrain": "1.0.0", - "com.unity.modules.terrainphysics": "1.0.0", - "com.unity.modules.tilemap": "1.0.0", - "com.unity.modules.ui": "1.0.0", - "com.unity.modules.uielements": "1.0.0", - "com.unity.modules.umbra": "1.0.0", - "com.unity.modules.unityanalytics": "1.0.0", - "com.unity.modules.unitywebrequest": "1.0.0", - "com.unity.modules.unitywebrequestassetbundle": "1.0.0", - "com.unity.modules.unitywebrequestaudio": "1.0.0", - "com.unity.modules.unitywebrequesttexture": "1.0.0", - "com.unity.modules.unitywebrequestwww": "1.0.0", - "com.unity.modules.vehicles": "1.0.0", - "com.unity.modules.video": "1.0.0", - "com.unity.modules.vr": "1.0.0", - "com.unity.modules.wind": "1.0.0", - "com.unity.modules.xr": "1.0.0" - } -} diff --git a/ProjectSettings/AudioManager.asset b/ProjectSettings/AudioManager.asset deleted file mode 100644 index 2c4f5a1b..00000000 --- a/ProjectSettings/AudioManager.asset +++ /dev/null @@ -1,16 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!11 &1 -AudioManager: - m_ObjectHideFlags: 0 - m_Volume: 1 - Rolloff Scale: 1 - Doppler Factor: 1 - Default Speaker Mode: 2 - m_SampleRate: 0 - m_DSPBufferSize: 0 - m_VirtualVoiceCount: 512 - m_RealVoiceCount: 32 - m_SpatializerPlugin: - m_DisableAudio: 0 - m_VirtualizeEffects: 1 diff --git a/ProjectSettings/ClusterInputManager.asset b/ProjectSettings/ClusterInputManager.asset deleted file mode 100644 index e7886b26..00000000 --- a/ProjectSettings/ClusterInputManager.asset +++ /dev/null @@ -1,6 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!236 &1 -ClusterInputManager: - m_ObjectHideFlags: 0 - m_Inputs: [] diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset deleted file mode 100644 index 6be69106..00000000 --- a/ProjectSettings/DynamicsManager.asset +++ /dev/null @@ -1,18 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!55 &1 -PhysicsManager: - m_ObjectHideFlags: 0 - serializedVersion: 3 - m_Gravity: {x: 0, y: -9.81, z: 0} - m_DefaultMaterial: {fileID: 0} - m_BounceThreshold: 2 - m_SleepThreshold: 0.005 - m_DefaultContactOffset: 0.01 - m_DefaultSolverIterations: 6 - m_DefaultSolverVelocityIterations: 1 - m_QueriesHitBackfaces: 0 - m_QueriesHitTriggers: 1 - m_EnableAdaptiveForce: 0 - m_EnablePCM: 1 - m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset deleted file mode 100644 index 6dc24f7d..00000000 --- a/ProjectSettings/EditorBuildSettings.asset +++ /dev/null @@ -1,7 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1045 &1 -EditorBuildSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Scenes: [] diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset deleted file mode 100644 index 8154aabe..00000000 --- a/ProjectSettings/EditorSettings.asset +++ /dev/null @@ -1,35 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!159 &1 -EditorSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_ExternalVersionControlSupport: Hidden Meta Files - m_SerializationMode: 2 - m_LineEndingsForNewScripts: 1 - m_DefaultBehaviorMode: 0 - m_PrefabRegularEnvironment: {fileID: 0} - m_PrefabUIEnvironment: {fileID: 0} - m_SpritePackerMode: 2 - m_SpritePackerPaddingPower: 1 - m_EtcTextureCompressorBehavior: 0 - m_EtcTextureFastCompressor: 2 - m_EtcTextureNormalCompressor: 2 - m_EtcTextureBestCompressor: 5 - m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmref - m_ProjectGenerationRootNamespace: - m_CollabEditorSettings: - inProgressEnabled: 1 - m_EnableTextureStreamingInEditMode: 1 - m_EnableTextureStreamingInPlayMode: 1 - m_AsyncShaderCompilation: 1 - m_EnterPlayModeOptionsEnabled: 0 - m_EnterPlayModeOptions: 3 - m_ShowLightmapResolutionOverlay: 1 - m_UseLegacyProbeSampleCount: 1 - m_AssetPipelineMode: 1 - m_CacheServerMode: 0 - m_CacheServerEndpoint: - m_CacheServerNamespacePrefix: default - m_CacheServerEnableDownload: 1 - m_CacheServerEnableUpload: 1 diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset deleted file mode 100644 index 0234aafd..00000000 --- a/ProjectSettings/GraphicsSettings.asset +++ /dev/null @@ -1,63 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!30 &1 -GraphicsSettings: - m_ObjectHideFlags: 0 - serializedVersion: 12 - m_Deferred: - m_Mode: 1 - m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} - m_DeferredReflections: - m_Mode: 1 - m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} - m_ScreenSpaceShadows: - m_Mode: 1 - m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} - m_LegacyDeferred: - m_Mode: 1 - m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} - m_DepthNormals: - m_Mode: 1 - m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} - m_MotionVectors: - m_Mode: 1 - m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} - m_LightHalo: - m_Mode: 1 - m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} - m_LensFlare: - m_Mode: 1 - m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} - m_AlwaysIncludedShaders: - - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} - - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} - m_PreloadedShaders: [] - m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - m_CustomRenderPipeline: {fileID: 0} - m_TransparencySortMode: 0 - m_TransparencySortAxis: {x: 0, y: 0, z: 1} - m_DefaultRenderingPath: 1 - m_DefaultMobileRenderingPath: 1 - m_TierSettings: [] - m_LightmapStripping: 0 - m_FogStripping: 0 - m_InstancingStripping: 0 - m_LightmapKeepPlain: 1 - m_LightmapKeepDirCombined: 1 - m_LightmapKeepDynamicPlain: 1 - m_LightmapKeepDynamicDirCombined: 1 - m_LightmapKeepShadowMask: 1 - m_LightmapKeepSubtractive: 1 - m_FogKeepLinear: 1 - m_FogKeepExp: 1 - m_FogKeepExp2: 1 - m_AlbedoSwatchInfos: [] - m_LightsUseLinearIntensity: 0 - m_LightsUseColorTemperature: 0 diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset deleted file mode 100644 index 17c8f538..00000000 --- a/ProjectSettings/InputManager.asset +++ /dev/null @@ -1,295 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!13 &1 -InputManager: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Axes: - - serializedVersion: 3 - m_Name: Horizontal - descriptiveName: - descriptiveNegativeName: - negativeButton: left - positiveButton: right - altNegativeButton: a - altPositiveButton: d - gravity: 3 - dead: 0.001 - sensitivity: 3 - snap: 1 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Vertical - descriptiveName: - descriptiveNegativeName: - negativeButton: down - positiveButton: up - altNegativeButton: s - altPositiveButton: w - gravity: 3 - dead: 0.001 - sensitivity: 3 - snap: 1 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire1 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: left ctrl - altNegativeButton: - altPositiveButton: mouse 0 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire2 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: left alt - altNegativeButton: - altPositiveButton: mouse 1 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire3 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: left shift - altNegativeButton: - altPositiveButton: mouse 2 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Jump - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: space - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Mouse X - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0 - sensitivity: 0.1 - snap: 0 - invert: 0 - type: 1 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Mouse Y - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0 - sensitivity: 0.1 - snap: 0 - invert: 0 - type: 1 - axis: 1 - joyNum: 0 - - serializedVersion: 3 - m_Name: Mouse ScrollWheel - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0 - sensitivity: 0.1 - snap: 0 - invert: 0 - type: 1 - axis: 2 - joyNum: 0 - - serializedVersion: 3 - m_Name: Horizontal - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0.19 - sensitivity: 1 - snap: 0 - invert: 0 - type: 2 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Vertical - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: - altNegativeButton: - altPositiveButton: - gravity: 0 - dead: 0.19 - sensitivity: 1 - snap: 0 - invert: 1 - type: 2 - axis: 1 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire1 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: joystick button 0 - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire2 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: joystick button 1 - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Fire3 - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: joystick button 2 - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Jump - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: joystick button 3 - altNegativeButton: - altPositiveButton: - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Submit - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: return - altNegativeButton: - altPositiveButton: joystick button 0 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Submit - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: enter - altNegativeButton: - altPositiveButton: space - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 - - serializedVersion: 3 - m_Name: Cancel - descriptiveName: - descriptiveNegativeName: - negativeButton: - positiveButton: escape - altNegativeButton: - altPositiveButton: joystick button 1 - gravity: 1000 - dead: 0.001 - sensitivity: 1000 - snap: 0 - invert: 0 - type: 0 - axis: 0 - joyNum: 0 diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset deleted file mode 100644 index 321ed393..00000000 --- a/ProjectSettings/NavMeshAreas.asset +++ /dev/null @@ -1,104 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!126 &1 -NavMeshProjectSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - areas: - - name: Walkable - cost: 1 - - name: Not Walkable - cost: 1 - - name: Jump - cost: 2 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - - name: - cost: 1 - m_LastAgentTypeID: -1372625422 - m_Settings: - - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.75 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - - serializedVersion: 2 - agentTypeID: -1372625422 - agentRadius: 1 - agentHeight: 2 - agentSlope: 35 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - m_SettingNames: - - Humanoid - - Ogre diff --git a/ProjectSettings/NetworkManager.asset b/ProjectSettings/NetworkManager.asset deleted file mode 100644 index 5dc6a831..00000000 --- a/ProjectSettings/NetworkManager.asset +++ /dev/null @@ -1,8 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!149 &1 -NetworkManager: - m_ObjectHideFlags: 0 - m_DebugLevel: 0 - m_Sendrate: 15 - m_AssetToPrefab: {} diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset deleted file mode 100644 index dd4738c2..00000000 --- a/ProjectSettings/Physics2DSettings.asset +++ /dev/null @@ -1,34 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!19 &1 -Physics2DSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Gravity: {x: 0, y: -9.81} - m_DefaultMaterial: {fileID: 0} - m_VelocityIterations: 8 - m_PositionIterations: 3 - m_VelocityThreshold: 1 - m_MaxLinearCorrection: 0.2 - m_MaxAngularCorrection: 8 - m_MaxTranslationSpeed: 100 - m_MaxRotationSpeed: 360 - m_MinPenetrationForPenalty: 0.01 - m_BaumgarteScale: 0.2 - m_BaumgarteTimeOfImpactScale: 0.75 - m_TimeToSleep: 0.5 - m_LinearSleepTolerance: 0.01 - m_AngularSleepTolerance: 2 - m_QueriesHitTriggers: 1 - m_QueriesStartInColliders: 1 - m_ChangeStopsCallbacks: 0 - m_AlwaysShowColliders: 0 - m_ShowColliderSleep: 1 - m_ShowColliderContacts: 0 - m_ShowColliderAABB: 0 - m_ContactArrowScale: 0.2 - m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} - m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} - m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} - m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} - m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/PresetManager.asset b/ProjectSettings/PresetManager.asset deleted file mode 100644 index 636a595b..00000000 --- a/ProjectSettings/PresetManager.asset +++ /dev/null @@ -1,6 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1386491679 &1 -PresetManager: - m_ObjectHideFlags: 0 - m_DefaultList: [] diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset deleted file mode 100644 index 8c2f597d..00000000 --- a/ProjectSettings/ProjectSettings.asset +++ /dev/null @@ -1,596 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!129 &1 -PlayerSettings: - m_ObjectHideFlags: 0 - serializedVersion: 15 - productGUID: 780c11d9110d54b00bd156eda70c71b3 - AndroidProfiler: 0 - AndroidFilterTouchesWhenObscured: 0 - AndroidEnableSustainedPerformanceMode: 0 - defaultScreenOrientation: 4 - targetDevice: 2 - useOnDemandResources: 0 - accelerometerFrequency: 60 - companyName: DefaultCompany - productName: NavMeshComponents - defaultCursor: {fileID: 0} - cursorHotspot: {x: 0, y: 0} - m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} - m_ShowUnitySplashScreen: 1 - m_ShowUnitySplashLogo: 1 - m_SplashScreenOverlayOpacity: 1 - m_SplashScreenAnimation: 1 - m_SplashScreenLogoStyle: 1 - m_SplashScreenDrawMode: 0 - m_SplashScreenBackgroundAnimationZoom: 1 - m_SplashScreenLogoAnimationZoom: 1 - m_SplashScreenBackgroundLandscapeAspect: 1 - m_SplashScreenBackgroundPortraitAspect: 1 - m_SplashScreenBackgroundLandscapeUvs: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - m_SplashScreenBackgroundPortraitUvs: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - m_SplashScreenLogos: [] - m_VirtualRealitySplashScreen: {fileID: 0} - m_HolographicTrackingLossScreen: {fileID: 0} - defaultScreenWidth: 1024 - defaultScreenHeight: 768 - defaultScreenWidthWeb: 960 - defaultScreenHeightWeb: 600 - m_StereoRenderingPath: 0 - m_ActiveColorSpace: 0 - m_MTRendering: 1 - m_StackTraceTypes: 010000000100000001000000010000000100000001000000 - iosShowActivityIndicatorOnLoading: -1 - androidShowActivityIndicatorOnLoading: -1 - iosAppInBackgroundBehavior: 0 - displayResolutionDialog: 1 - iosAllowHTTPDownload: 1 - allowedAutorotateToPortrait: 1 - allowedAutorotateToPortraitUpsideDown: 1 - allowedAutorotateToLandscapeRight: 1 - allowedAutorotateToLandscapeLeft: 1 - useOSAutorotation: 1 - use32BitDisplayBuffer: 1 - preserveFramebufferAlpha: 0 - disableDepthAndStencilBuffers: 0 - androidStartInFullscreen: 1 - androidBlitType: 0 - defaultIsNativeResolution: 1 - macRetinaSupport: 1 - runInBackground: 1 - captureSingleScreen: 0 - muteOtherAudioSources: 0 - Prepare IOS For Recording: 0 - Force IOS Speakers When Recording: 0 - deferSystemGesturesMode: 0 - hideHomeButton: 0 - submitAnalytics: 1 - usePlayerLog: 1 - bakeCollisionMeshes: 0 - forceSingleInstance: 0 - resizableWindow: 0 - useMacAppStoreValidation: 0 - macAppStoreCategory: public.app-category.games - gpuSkinning: 0 - graphicsJobs: 0 - xboxPIXTextureCapture: 0 - xboxEnableAvatar: 0 - xboxEnableKinect: 0 - xboxEnableKinectAutoTracking: 0 - xboxEnableFitness: 0 - visibleInBackground: 0 - allowFullscreenSwitch: 1 - graphicsJobMode: 0 - fullscreenMode: 1 - xboxSpeechDB: 0 - xboxEnableHeadOrientation: 0 - xboxEnableGuest: 0 - xboxEnablePIXSampling: 0 - metalFramebufferOnly: 0 - xboxOneResolution: 0 - xboxOneSResolution: 0 - xboxOneXResolution: 3 - xboxOneMonoLoggingLevel: 0 - xboxOneLoggingLevel: 1 - xboxOneDisableEsram: 0 - xboxOnePresentImmediateThreshold: 0 - switchQueueCommandMemory: 0 - vulkanEnableSetSRGBWrite: 0 - m_SupportedAspectRatios: - 4:3: 1 - 5:4: 1 - 16:10: 1 - 16:9: 1 - Others: 1 - bundleVersion: 1.0 - preloadedAssets: [] - metroInputSource: 0 - wsaTransparentSwapchain: 0 - m_HolographicPauseOnTrackingLoss: 1 - xboxOneDisableKinectGpuReservation: 0 - xboxOneEnable7thCore: 0 - vrSettings: - cardboard: - depthFormat: 0 - enableTransitionView: 0 - daydream: - depthFormat: 0 - useSustainedPerformanceMode: 0 - enableVideoLayer: 0 - useProtectedVideoMemory: 0 - minimumSupportedHeadTracking: 0 - maximumSupportedHeadTracking: 1 - hololens: - depthFormat: 1 - depthBufferSharingEnabled: 0 - oculus: - sharedDepthBuffer: 0 - dashSupport: 0 - enable360StereoCapture: 0 - protectGraphicsMemory: 0 - enableFrameTimingStats: 0 - useHDRDisplay: 0 - m_ColorGamuts: 00000000 - targetPixelDensity: 30 - resolutionScalingMode: 0 - androidSupportedAspectRatio: 1 - androidMaxAspectRatio: 2.1 - applicationIdentifier: - Android: com.Company.ProductName - Standalone: unity.DefaultCompany.NavMeshComponents - Tizen: com.Company.ProductName - iOS: com.Company.ProductName - tvOS: com.Company.ProductName - buildNumber: - iOS: 0 - AndroidBundleVersionCode: 1 - AndroidMinSdkVersion: 16 - AndroidTargetSdkVersion: 0 - AndroidPreferredInstallLocation: 1 - aotOptions: - stripEngineCode: 1 - iPhoneStrippingLevel: 0 - iPhoneScriptCallOptimization: 0 - ForceInternetPermission: 0 - ForceSDCardPermission: 0 - CreateWallpaper: 0 - APKExpansionFiles: 0 - keepLoadedShadersAlive: 0 - StripUnusedMeshComponents: 0 - VertexChannelCompressionMask: 214 - iPhoneSdkVersion: 988 - iOSTargetOSVersionString: 8.0 - tvOSSdkVersion: 0 - tvOSRequireExtendedGameController: 0 - tvOSTargetOSVersionString: 9.0 - uIPrerenderedIcon: 0 - uIRequiresPersistentWiFi: 0 - uIRequiresFullScreen: 1 - uIStatusBarHidden: 1 - uIExitOnSuspend: 0 - uIStatusBarStyle: 0 - iPhoneSplashScreen: {fileID: 0} - iPhoneHighResSplashScreen: {fileID: 0} - iPhoneTallHighResSplashScreen: {fileID: 0} - iPhone47inSplashScreen: {fileID: 0} - iPhone55inPortraitSplashScreen: {fileID: 0} - iPhone55inLandscapeSplashScreen: {fileID: 0} - iPhone58inPortraitSplashScreen: {fileID: 0} - iPhone58inLandscapeSplashScreen: {fileID: 0} - iPadPortraitSplashScreen: {fileID: 0} - iPadHighResPortraitSplashScreen: {fileID: 0} - iPadLandscapeSplashScreen: {fileID: 0} - iPadHighResLandscapeSplashScreen: {fileID: 0} - appleTVSplashScreen: {fileID: 0} - appleTVSplashScreen2x: {fileID: 0} - tvOSSmallIconLayers: [] - tvOSSmallIconLayers2x: [] - tvOSLargeIconLayers: [] - tvOSLargeIconLayers2x: [] - tvOSTopShelfImageLayers: [] - tvOSTopShelfImageLayers2x: [] - tvOSTopShelfImageWideLayers: [] - tvOSTopShelfImageWideLayers2x: [] - iOSLaunchScreenType: 0 - iOSLaunchScreenPortrait: {fileID: 0} - iOSLaunchScreenLandscape: {fileID: 0} - iOSLaunchScreenBackgroundColor: - serializedVersion: 2 - rgba: 0 - iOSLaunchScreenFillPct: 100 - iOSLaunchScreenSize: 100 - iOSLaunchScreenCustomXibPath: - iOSLaunchScreeniPadType: 0 - iOSLaunchScreeniPadImage: {fileID: 0} - iOSLaunchScreeniPadBackgroundColor: - serializedVersion: 2 - rgba: 0 - iOSLaunchScreeniPadFillPct: 100 - iOSLaunchScreeniPadSize: 100 - iOSLaunchScreeniPadCustomXibPath: - iOSUseLaunchScreenStoryboard: 0 - iOSLaunchScreenCustomStoryboardPath: - iOSDeviceRequirements: [] - iOSURLSchemes: [] - iOSBackgroundModes: 0 - iOSMetalForceHardShadows: 0 - metalEditorSupport: 1 - metalAPIValidation: 1 - iOSRenderExtraFrameOnPause: 1 - appleDeveloperTeamID: - iOSManualSigningProvisioningProfileID: - tvOSManualSigningProvisioningProfileID: - iOSManualSigningProvisioningProfileType: 0 - tvOSManualSigningProvisioningProfileType: 0 - appleEnableAutomaticSigning: 0 - iOSRequireARKit: 0 - appleEnableProMotion: 0 - clonedFromGUID: 00000000000000000000000000000000 - templatePackageId: - templateDefaultScene: - AndroidTargetArchitectures: 5 - AndroidSplashScreenScale: 0 - androidSplashScreen: {fileID: 0} - AndroidKeystoreName: - AndroidKeyaliasName: - AndroidBuildApkPerCpuArchitecture: 0 - AndroidTVCompatibility: 1 - AndroidIsGame: 1 - AndroidEnableTango: 0 - androidEnableBanner: 1 - androidUseLowAccuracyLocation: 0 - m_AndroidBanners: - - width: 320 - height: 180 - banner: {fileID: 0} - androidGamepadSupportLevel: 0 - AndroidJvmMaxHeapSize: 4096 - resolutionDialogBanner: {fileID: 0} - m_BuildTargetIcons: [] - m_BuildTargetPlatformIcons: [] - m_BuildTargetBatching: [] - m_BuildTargetGraphicsAPIs: [] - m_BuildTargetVRSettings: [] - m_BuildTargetEnableVuforiaSettings: [] - openGLRequireES31: 0 - openGLRequireES31AEP: 0 - m_TemplateCustomTags: {} - mobileMTRendering: - iPhone: 1 - tvOS: 1 - m_BuildTargetGroupLightmapEncodingQuality: - - m_BuildTarget: Standalone - m_EncodingQuality: 1 - - m_BuildTarget: XboxOne - m_EncodingQuality: 1 - - m_BuildTarget: PS4 - m_EncodingQuality: 1 - m_BuildTargetGroupLightmapSettings: [] - playModeTestRunnerEnabled: 0 - runPlayModeTestAsEditModeTest: 0 - actionOnDotNetUnhandledException: 1 - enableInternalProfiler: 0 - logObjCUncaughtExceptions: 1 - enableCrashReportAPI: 0 - cameraUsageDescription: - locationUsageDescription: - microphoneUsageDescription: - switchNetLibKey: - switchSocketMemoryPoolSize: 6144 - switchSocketAllocatorPoolSize: 128 - switchSocketConcurrencyLimit: 14 - switchScreenResolutionBehavior: 2 - switchUseCPUProfiler: 0 - switchApplicationID: 0x01004b9000490000 - switchNSODependencies: - switchTitleNames_0: - switchTitleNames_1: - switchTitleNames_2: - switchTitleNames_3: - switchTitleNames_4: - switchTitleNames_5: - switchTitleNames_6: - switchTitleNames_7: - switchTitleNames_8: - switchTitleNames_9: - switchTitleNames_10: - switchTitleNames_11: - switchTitleNames_12: - switchTitleNames_13: - switchTitleNames_14: - switchPublisherNames_0: - switchPublisherNames_1: - switchPublisherNames_2: - switchPublisherNames_3: - switchPublisherNames_4: - switchPublisherNames_5: - switchPublisherNames_6: - switchPublisherNames_7: - switchPublisherNames_8: - switchPublisherNames_9: - switchPublisherNames_10: - switchPublisherNames_11: - switchPublisherNames_12: - switchPublisherNames_13: - switchPublisherNames_14: - switchIcons_0: {fileID: 0} - switchIcons_1: {fileID: 0} - switchIcons_2: {fileID: 0} - switchIcons_3: {fileID: 0} - switchIcons_4: {fileID: 0} - switchIcons_5: {fileID: 0} - switchIcons_6: {fileID: 0} - switchIcons_7: {fileID: 0} - switchIcons_8: {fileID: 0} - switchIcons_9: {fileID: 0} - switchIcons_10: {fileID: 0} - switchIcons_11: {fileID: 0} - switchIcons_12: {fileID: 0} - switchIcons_13: {fileID: 0} - switchIcons_14: {fileID: 0} - switchSmallIcons_0: {fileID: 0} - switchSmallIcons_1: {fileID: 0} - switchSmallIcons_2: {fileID: 0} - switchSmallIcons_3: {fileID: 0} - switchSmallIcons_4: {fileID: 0} - switchSmallIcons_5: {fileID: 0} - switchSmallIcons_6: {fileID: 0} - switchSmallIcons_7: {fileID: 0} - switchSmallIcons_8: {fileID: 0} - switchSmallIcons_9: {fileID: 0} - switchSmallIcons_10: {fileID: 0} - switchSmallIcons_11: {fileID: 0} - switchSmallIcons_12: {fileID: 0} - switchSmallIcons_13: {fileID: 0} - switchSmallIcons_14: {fileID: 0} - switchManualHTML: - switchAccessibleURLs: - switchLegalInformation: - switchMainThreadStackSize: 1048576 - switchPresenceGroupId: - switchLogoHandling: 0 - switchReleaseVersion: 0 - switchDisplayVersion: 1.0.0 - switchStartupUserAccount: 0 - switchTouchScreenUsage: 0 - switchSupportedLanguagesMask: 0 - switchLogoType: 0 - switchApplicationErrorCodeCategory: - switchUserAccountSaveDataSize: 0 - switchUserAccountSaveDataJournalSize: 0 - switchApplicationAttribute: 0 - switchCardSpecSize: -1 - switchCardSpecClock: -1 - switchRatingsMask: 0 - switchRatingsInt_0: 0 - switchRatingsInt_1: 0 - switchRatingsInt_2: 0 - switchRatingsInt_3: 0 - switchRatingsInt_4: 0 - switchRatingsInt_5: 0 - switchRatingsInt_6: 0 - switchRatingsInt_7: 0 - switchRatingsInt_8: 0 - switchRatingsInt_9: 0 - switchRatingsInt_10: 0 - switchRatingsInt_11: 0 - switchLocalCommunicationIds_0: - switchLocalCommunicationIds_1: - switchLocalCommunicationIds_2: - switchLocalCommunicationIds_3: - switchLocalCommunicationIds_4: - switchLocalCommunicationIds_5: - switchLocalCommunicationIds_6: - switchLocalCommunicationIds_7: - switchParentalControl: 0 - switchAllowsScreenshot: 1 - switchAllowsVideoCapturing: 1 - switchAllowsRuntimeAddOnContentInstall: 0 - switchDataLossConfirmation: 0 - switchSupportedNpadStyles: 3 - switchNativeFsCacheSize: 32 - switchIsHoldTypeHorizontal: 0 - switchSupportedNpadCount: 8 - switchSocketConfigEnabled: 0 - switchTcpInitialSendBufferSize: 32 - switchTcpInitialReceiveBufferSize: 64 - switchTcpAutoSendBufferSizeMax: 256 - switchTcpAutoReceiveBufferSizeMax: 256 - switchUdpSendBufferSize: 9 - switchUdpReceiveBufferSize: 42 - switchSocketBufferEfficiency: 4 - switchSocketInitializeEnabled: 1 - switchNetworkInterfaceManagerInitializeEnabled: 1 - switchPlayerConnectionEnabled: 1 - ps4NPAgeRating: 12 - ps4NPTitleSecret: - ps4NPTrophyPackPath: - ps4ParentalLevel: 1 - ps4ContentID: ED1633-NPXX51362_00-0000000000000000 - ps4Category: 0 - ps4MasterVersion: 01.00 - ps4AppVersion: 01.00 - ps4AppType: 0 - ps4ParamSfxPath: - ps4VideoOutPixelFormat: 0 - ps4VideoOutInitialWidth: 1920 - ps4VideoOutBaseModeInitialWidth: 1920 - ps4VideoOutReprojectionRate: 120 - ps4PronunciationXMLPath: - ps4PronunciationSIGPath: - ps4BackgroundImagePath: - ps4StartupImagePath: - ps4StartupImagesFolder: - ps4IconImagesFolder: - ps4SaveDataImagePath: - ps4SdkOverride: - ps4BGMPath: - ps4ShareFilePath: - ps4ShareOverlayImagePath: - ps4PrivacyGuardImagePath: - ps4NPtitleDatPath: - ps4RemotePlayKeyAssignment: -1 - ps4RemotePlayKeyMappingDir: - ps4PlayTogetherPlayerCount: 0 - ps4EnterButtonAssignment: 1 - ps4ApplicationParam1: 0 - ps4ApplicationParam2: 0 - ps4ApplicationParam3: 0 - ps4ApplicationParam4: 0 - ps4DownloadDataSize: 0 - ps4GarlicHeapSize: 2048 - ps4ProGarlicHeapSize: 2560 - ps4Passcode: 5PN2qmWqBlQ9wQj99nsQzldVI5ZuGXbE - ps4pnSessions: 1 - ps4pnPresence: 1 - ps4pnFriends: 1 - ps4pnGameCustomData: 1 - playerPrefsSupport: 0 - enableApplicationExit: 0 - resetTempFolder: 1 - restrictedAudioUsageRights: 0 - ps4UseResolutionFallback: 0 - ps4ReprojectionSupport: 0 - ps4UseAudio3dBackend: 0 - ps4SocialScreenEnabled: 0 - ps4ScriptOptimizationLevel: 3 - ps4Audio3dVirtualSpeakerCount: 14 - ps4attribCpuUsage: 0 - ps4PatchPkgPath: - ps4PatchLatestPkgPath: - ps4PatchChangeinfoPath: - ps4PatchDayOne: 0 - ps4attribUserManagement: 0 - ps4attribMoveSupport: 0 - ps4attrib3DSupport: 0 - ps4attribShareSupport: 0 - ps4attribExclusiveVR: 0 - ps4disableAutoHideSplash: 0 - ps4videoRecordingFeaturesUsed: 0 - ps4contentSearchFeaturesUsed: 0 - ps4attribEyeToEyeDistanceSettingVR: 0 - ps4IncludedModules: [] - monoEnv: - splashScreenBackgroundSourceLandscape: {fileID: 0} - splashScreenBackgroundSourcePortrait: {fileID: 0} - spritePackerPolicy: - webGLMemorySize: 256 - webGLExceptionSupport: 1 - webGLNameFilesAsHashes: 0 - webGLDataCaching: 0 - webGLDebugSymbols: 0 - webGLEmscriptenArgs: - webGLModulesDirectory: - webGLTemplate: APPLICATION:Default - webGLAnalyzeBuildSize: 0 - webGLUseEmbeddedResources: 0 - webGLCompressionFormat: 1 - webGLLinkerTarget: 0 - webGLThreadsSupport: 0 - scriptingDefineSymbols: {} - platformArchitecture: {} - scriptingBackend: {} - il2cppCompilerConfiguration: {} - managedStrippingLevel: {} - incrementalIl2cppBuild: {} - allowUnsafeCode: 0 - additionalIl2CppArgs: - scriptingRuntimeVersion: 0 - apiCompatibilityLevelPerPlatform: {} - m_RenderingPath: 1 - m_MobileRenderingPath: 1 - metroPackageName: NavMeshComponents - metroPackageVersion: - metroCertificatePath: - metroCertificatePassword: - metroCertificateSubject: - metroCertificateIssuer: - metroCertificateNotAfter: 0000000000000000 - metroApplicationDescription: NavMeshComponents - wsaImages: {} - metroTileShortName: - metroTileShowName: 0 - metroMediumTileShowName: 0 - metroLargeTileShowName: 0 - metroWideTileShowName: 0 - metroSupportStreamingInstall: 0 - metroLastRequiredScene: 0 - metroDefaultTileSize: 1 - metroTileForegroundText: 2 - metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} - metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} - metroSplashScreenUseBackgroundColor: 0 - platformCapabilities: {} - metroTargetDeviceFamilies: {} - metroFTAName: - metroFTAFileTypes: [] - metroProtocolName: - metroCompilationOverrides: 1 - XboxOneProductId: - XboxOneUpdateKey: - XboxOneSandboxId: - XboxOneContentId: - XboxOneTitleId: - XboxOneSCId: - XboxOneGameOsOverridePath: - XboxOnePackagingOverridePath: - XboxOneAppManifestOverridePath: - XboxOneVersion: 1.0.0.0 - XboxOnePackageEncryption: 0 - XboxOnePackageUpdateGranularity: 2 - XboxOneDescription: - XboxOneLanguage: - - enus - XboxOneCapability: [] - XboxOneGameRating: {} - XboxOneIsContentPackage: 0 - XboxOneEnableGPUVariability: 0 - XboxOneSockets: {} - XboxOneSplashScreen: {fileID: 0} - XboxOneAllowedProductIds: [] - XboxOnePersistentLocalStorageSize: 0 - XboxOneXTitleMemory: 8 - xboxOneScriptCompiler: 0 - XboxOneOverrideIdentityName: - vrEditorSettings: - daydream: - daydreamIconForeground: {fileID: 0} - daydreamIconBackground: {fileID: 0} - cloudServicesEnabled: {} - luminIcon: - m_Name: - m_ModelFolderPath: - m_PortalFolderPath: - luminCert: - m_CertPath: - m_PrivateKeyPath: - luminIsChannelApp: 0 - luminVersion: - m_VersionCode: 1 - m_VersionName: - facebookSdkVersion: 7.9.4 - facebookAppId: - facebookCookies: 1 - facebookLogging: 1 - facebookStatus: 1 - facebookXfbml: 0 - facebookFrictionlessRequests: 1 - apiCompatibilityLevel: 2 - cloudProjectId: - framebufferDepthMemorylessMode: 0 - projectName: - organizationId: - cloudEnabled: 0 - enableNativePlatformBackendsForNewInputSystem: 0 - disableOldInputManagerSupport: 0 - legacyClampBlendShapeWeights: 1 diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt deleted file mode 100644 index d6e47130..00000000 --- a/ProjectSettings/ProjectVersion.txt +++ /dev/null @@ -1,2 +0,0 @@ -m_EditorVersion: 2019.4.0f1 -m_EditorVersionWithRevision: 2019.4.0f1 (0af376155913) diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset deleted file mode 100644 index 0d9af3ec..00000000 --- a/ProjectSettings/QualitySettings.asset +++ /dev/null @@ -1,180 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!47 &1 -QualitySettings: - m_ObjectHideFlags: 0 - serializedVersion: 5 - m_CurrentQuality: 5 - m_QualitySettings: - - serializedVersion: 2 - name: Fastest - pixelLightCount: 0 - shadows: 0 - shadowResolution: 0 - shadowProjection: 1 - shadowCascades: 1 - shadowDistance: 15 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - blendWeights: 1 - textureQuality: 1 - anisotropicTextures: 0 - antiAliasing: 0 - softParticles: 0 - softVegetation: 0 - realtimeReflectionProbes: 0 - billboardsFaceCameraPosition: 0 - vSyncCount: 0 - lodBias: 0.3 - maximumLODLevel: 0 - particleRaycastBudget: 4 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 4 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Fast - pixelLightCount: 0 - shadows: 0 - shadowResolution: 0 - shadowProjection: 1 - shadowCascades: 1 - shadowDistance: 20 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - blendWeights: 2 - textureQuality: 0 - anisotropicTextures: 0 - antiAliasing: 0 - softParticles: 0 - softVegetation: 0 - realtimeReflectionProbes: 0 - billboardsFaceCameraPosition: 0 - vSyncCount: 0 - lodBias: 0.4 - maximumLODLevel: 0 - particleRaycastBudget: 16 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 4 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Simple - pixelLightCount: 1 - shadows: 1 - shadowResolution: 0 - shadowProjection: 1 - shadowCascades: 1 - shadowDistance: 20 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - blendWeights: 2 - textureQuality: 0 - anisotropicTextures: 1 - antiAliasing: 0 - softParticles: 0 - softVegetation: 0 - realtimeReflectionProbes: 0 - billboardsFaceCameraPosition: 0 - vSyncCount: 1 - lodBias: 0.7 - maximumLODLevel: 0 - particleRaycastBudget: 64 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 4 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Good - pixelLightCount: 2 - shadows: 2 - shadowResolution: 1 - shadowProjection: 1 - shadowCascades: 2 - shadowDistance: 40 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - blendWeights: 2 - textureQuality: 0 - anisotropicTextures: 1 - antiAliasing: 0 - softParticles: 0 - softVegetation: 1 - realtimeReflectionProbes: 1 - billboardsFaceCameraPosition: 1 - vSyncCount: 1 - lodBias: 1 - maximumLODLevel: 0 - particleRaycastBudget: 256 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 4 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Beautiful - pixelLightCount: 3 - shadows: 2 - shadowResolution: 2 - shadowProjection: 1 - shadowCascades: 2 - shadowDistance: 70 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - blendWeights: 4 - textureQuality: 0 - anisotropicTextures: 2 - antiAliasing: 2 - softParticles: 1 - softVegetation: 1 - realtimeReflectionProbes: 1 - billboardsFaceCameraPosition: 1 - vSyncCount: 1 - lodBias: 1.5 - maximumLODLevel: 0 - particleRaycastBudget: 1024 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 4 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Fantastic - pixelLightCount: 4 - shadows: 2 - shadowResolution: 2 - shadowProjection: 1 - shadowCascades: 4 - shadowDistance: 150 - shadowNearPlaneOffset: 3 - shadowCascade2Split: 0.33333334 - shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} - blendWeights: 4 - textureQuality: 0 - anisotropicTextures: 2 - antiAliasing: 2 - softParticles: 1 - softVegetation: 1 - realtimeReflectionProbes: 1 - billboardsFaceCameraPosition: 1 - vSyncCount: 1 - lodBias: 2 - maximumLODLevel: 0 - particleRaycastBudget: 4096 - asyncUploadTimeSlice: 2 - asyncUploadBufferSize: 4 - excludedTargetPlatforms: [] - m_PerPlatformDefaultQuality: - Android: 2 - Nintendo 3DS: 5 - PS4: 5 - PSM: 5 - PSP2: 2 - Samsung TV: 2 - Standalone: 5 - Tizen: 2 - Web: 5 - WebGL: 3 - WiiU: 5 - Windows Store Apps: 5 - XboxOne: 5 - iPhone: 2 - tvOS: 5 diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset deleted file mode 100644 index 1c92a784..00000000 --- a/ProjectSettings/TagManager.asset +++ /dev/null @@ -1,43 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!78 &1 -TagManager: - serializedVersion: 2 - tags: [] - layers: - - Default - - TransparentFX - - Ignore Raycast - - - - Water - - UI - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - m_SortingLayers: - - name: Default - uniqueID: 0 - locked: 0 diff --git a/ProjectSettings/TimeManager.asset b/ProjectSettings/TimeManager.asset deleted file mode 100644 index 558a017e..00000000 --- a/ProjectSettings/TimeManager.asset +++ /dev/null @@ -1,9 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!5 &1 -TimeManager: - m_ObjectHideFlags: 0 - Fixed Timestep: 0.02 - Maximum Allowed Timestep: 0.33333334 - m_TimeScale: 1 - Maximum Particle Timestep: 0.03 diff --git a/ProjectSettings/UnityConnectSettings.asset b/ProjectSettings/UnityConnectSettings.asset deleted file mode 100644 index 23a3d9b7..00000000 --- a/ProjectSettings/UnityConnectSettings.asset +++ /dev/null @@ -1,33 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!310 &1 -UnityConnectSettings: - m_ObjectHideFlags: 0 - serializedVersion: 1 - m_Enabled: 1 - m_TestMode: 0 - m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events - m_EventUrl: https://cdp.cloud.unity3d.com/v1/events - m_ConfigUrl: https://config.uca.cloud.unity3d.com - m_TestInitMode: 0 - CrashReportingSettings: - m_EventUrl: https://perf-events.cloud.unity3d.com - m_Enabled: 0 - m_LogBufferSize: 10 - m_CaptureEditorExceptions: 1 - UnityPurchasingSettings: - m_Enabled: 0 - m_TestMode: 0 - UnityAnalyticsSettings: - m_Enabled: 0 - m_TestMode: 0 - UnityAdsSettings: - m_Enabled: 0 - m_InitializeOnStartup: 1 - m_TestMode: 0 - m_IosGameId: - m_AndroidGameId: - m_GameIds: {} - m_GameId: - PerformanceReportingSettings: - m_Enabled: 0 diff --git a/ProjectSettings/VFXManager.asset b/ProjectSettings/VFXManager.asset deleted file mode 100644 index 6e0eaca4..00000000 --- a/ProjectSettings/VFXManager.asset +++ /dev/null @@ -1,11 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!937362698 &1 -VFXManager: - m_ObjectHideFlags: 0 - m_IndirectShader: {fileID: 0} - m_CopyBufferShader: {fileID: 0} - m_SortShader: {fileID: 0} - m_RenderPipeSettingsPath: - m_FixedTimeStep: 0.016666668 - m_MaxDeltaTime: 0.05 diff --git a/ProjectSettings/XRSettings.asset b/ProjectSettings/XRSettings.asset deleted file mode 100644 index 482590c1..00000000 --- a/ProjectSettings/XRSettings.asset +++ /dev/null @@ -1,10 +0,0 @@ -{ - "m_SettingKeys": [ - "VR Device Disabled", - "VR Device User Alert" - ], - "m_SettingValues": [ - "False", - "False" - ] -} \ No newline at end of file diff --git a/README.md b/README.md index 0ee0aad8..ce1c13f4 100644 --- a/README.md +++ b/README.md @@ -11,20 +11,14 @@ Here we introduce four components for the navigation system: These components comprise the high level controls for building and using NavMeshes at runtime as well as edit time. -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. +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 +# Setup -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. - -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. - -_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.**_ +In Unity 2019.4 or newer versions follow the instructions in the manual about [Installing a package from a Git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html) in order to use this package directly from the GitHub repository.\ +Another way to use the package is by referencing a local clone of this repository in a project as described in the [Installing a package from a local folder](https://docs.unity3d.com/Manual/upm-ui-local.html) instructions.\ +Alternatively, you can copy the contents of the `Editor`, `Gizmos` and `Runtime` folders to an existing project.\ +Additional examples are available in the [Samples~](Samples~) folder. To try them out copy the contents of the folder into a Unity project that references this NavMesh Components package. The examples are provided "as is". They are neither generic nor robust, but serve as inspiration. # FAQ @@ -58,3 +52,7 @@ A: No - you can still use OffMeshLink - however you'll find that NavMeshLink is Q: What happened to HeightMesh and Auto Generated OffMeshLinks? A: They're not supported in the new NavMesh building feature. HeightMesh will be added at some point. Auto OffMeshLink generation will possibly be replaced with a solution that allows better control of placement. + +# Notice on the Change of License + +Starting with 2020-12-08 the content of this package is [licensed](LICENSE) under the [Unity Companion License](https://unity3d.com/legal/licenses/unity_companion_license) for Unity-dependent projects. All content that was accessed under the old MIT license remains under that license. diff --git a/README.md.meta b/README.md.meta new file mode 100644 index 00000000..048d5e97 --- /dev/null +++ b/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 6fc2b2cf518e540319637f5c5c573d3a +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/NavMeshComponents/Scripts.meta b/Runtime.meta similarity index 100% rename from Assets/NavMeshComponents/Scripts.meta rename to Runtime.meta diff --git a/Assets/NavMeshComponents/Scripts/NavMeshLink.cs b/Runtime/NavMeshLink.cs similarity index 74% rename from Assets/NavMeshComponents/Scripts/NavMeshLink.cs rename to Runtime/NavMeshLink.cs index 6a921033..c3d41be0 100644 --- a/Assets/NavMeshComponents/Scripts/NavMeshLink.cs +++ b/Runtime/NavMeshLink.cs @@ -2,6 +2,9 @@ namespace UnityEngine.AI { + /// + /// Component used to create a navigable link between two NavMesh locations. + /// [ExecuteInEditMode] [DefaultExecutionOrder(-101)] [AddComponentMenu("Navigation/NavMeshLink", 33)] @@ -10,34 +13,48 @@ public class NavMeshLink : MonoBehaviour { [SerializeField] int m_AgentTypeID; + /// Gets or sets the type of agent that can use the link. public int agentTypeID { get { return m_AgentTypeID; } set { m_AgentTypeID = value; UpdateLink(); } } [SerializeField] Vector3 m_StartPoint = new Vector3(0.0f, 0.0f, -2.5f); + /// Gets or sets the position at the middle of the link's start edge. + /// The position is relative to the GameObject transform. public Vector3 startPoint { get { return m_StartPoint; } set { m_StartPoint = value; UpdateLink(); } } [SerializeField] Vector3 m_EndPoint = new Vector3(0.0f, 0.0f, 2.5f); + /// Gets or sets the position at the middle of the link's end edge. + /// The position is relative to the GameObject transform. public Vector3 endPoint { get { return m_EndPoint; } set { m_EndPoint = value; UpdateLink(); } } [SerializeField] float m_Width; + /// The width of the segments making up the ends of the link. + /// The segments are created perpendicular to the line from start to end. public float width { get { return m_Width; } set { m_Width = value; UpdateLink(); } } [SerializeField] int m_CostModifier = -1; + /// Gets or sets a value that determines the cost of traversing the link. + /// A negative value implies that the traversal cost is obtained based on the area type. + /// A positive or zero value applies immediately, overridding the cost associated with the area type. public int costModifier { get { return m_CostModifier; } set { m_CostModifier = value; UpdateLink(); } } [SerializeField] bool m_Bidirectional = true; + /// Gets or sets whether the link can be traversed in both directions. public bool bidirectional { get { return m_Bidirectional; } set { m_Bidirectional = value; UpdateLink(); } } [SerializeField] bool m_AutoUpdatePosition; + /// Gets or sets whether the world positions of the link's edges update whenever + /// the GameObject transform changes at runtime. public bool autoUpdate { get { return m_AutoUpdatePosition; } set { SetAutoUpdate(value); } } [SerializeField] int m_Area; + /// The area type of the link. public int area { get { return m_Area; } set { m_Area = value; UpdateLink(); } } NavMeshLinkInstance m_LinkInstance = new NavMeshLinkInstance(); @@ -60,6 +77,7 @@ void OnDisable() m_LinkInstance.Remove(); } + /// Replaces the link with a new one using the current settings. public void UpdateLink() { m_LinkInstance.Remove(); @@ -129,8 +147,10 @@ void AddLink() bool HasTransformChanged() { - if (m_LastPosition != transform.position) return true; - if (m_LastRotation != transform.rotation) return true; + if (m_LastPosition != transform.position) + return true; + if (m_LastRotation != transform.rotation) + return true; return false; } diff --git a/Assets/NavMeshComponents/Scripts/NavMeshLink.cs.meta b/Runtime/NavMeshLink.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Scripts/NavMeshLink.cs.meta rename to Runtime/NavMeshLink.cs.meta diff --git a/Assets/NavMeshComponents/Scripts/NavMeshModifier.cs b/Runtime/NavMeshModifier.cs similarity index 100% rename from Assets/NavMeshComponents/Scripts/NavMeshModifier.cs rename to Runtime/NavMeshModifier.cs diff --git a/Assets/NavMeshComponents/Scripts/NavMeshModifier.cs.meta b/Runtime/NavMeshModifier.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Scripts/NavMeshModifier.cs.meta rename to Runtime/NavMeshModifier.cs.meta diff --git a/Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs b/Runtime/NavMeshModifierVolume.cs similarity index 50% rename from Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs rename to Runtime/NavMeshModifierVolume.cs index faa7e630..7f4c3668 100644 --- a/Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs +++ b/Runtime/NavMeshModifierVolume.cs @@ -2,6 +2,7 @@ namespace UnityEngine.AI { + /// Component used by the NavMesh building process to assign a different area type to the region inside the specified volume. [ExecuteInEditMode] [AddComponentMenu("Navigation/NavMeshModifierVolume", 31)] [HelpURL("https://github.com/Unity-Technologies/NavMeshComponents#documentation-draft")] @@ -9,14 +10,21 @@ public class NavMeshModifierVolume : MonoBehaviour { [SerializeField] Vector3 m_Size = new Vector3(4.0f, 3.0f, 4.0f); + /// Gets or sets the dimensions of the cuboid modifier volume. + /// The dimensions apply in the local space of the GameObject. public Vector3 size { get { return m_Size; } set { m_Size = value; } } [SerializeField] Vector3 m_Center = new Vector3(0, 1.0f, 0); + /// Gets or sets the center position of the modifier volume. + /// The position is relative to the GameObject transform. public Vector3 center { get { return m_Center; } set { m_Center = value; } } [SerializeField] int m_Area; + /// Gets or sets the area type that will be enforced by the volume during the generation of the NavMesh. + /// The range of useful values is from 0 to 31. Higher values always take precedence over lower values in the case when more volumes intersect each other. A value of 1 has the highest priority over all the other types and it means "not walkable". Consequently, a volume with an area of 1 produces a hole in the NavMesh. This property has the same meaning as . + /// public int area { get { return m_Area; } set { m_Area = value; } } // List of agent types the modifier is applied for. @@ -26,6 +34,7 @@ public class NavMeshModifierVolume : MonoBehaviour static readonly List s_NavMeshModifiers = new List(); + /// Gets the list of all the components that are currently active in the scene. public static List activeModifiers { get { return s_NavMeshModifiers; } @@ -42,6 +51,9 @@ void OnDisable() s_NavMeshModifiers.Remove(this); } + /// Verifies whether this modifier volume can affect in any way the generation of a NavMesh for a given agent type. + /// The identifier of an agent type that originates from . + /// true if this component can affect the NavMesh built for the given agent type; otherwise false. public bool AffectsAgentType(int agentTypeID) { if (m_AffectedAgents.Count == 0) diff --git a/Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs.meta b/Runtime/NavMeshModifierVolume.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Scripts/NavMeshModifierVolume.cs.meta rename to Runtime/NavMeshModifierVolume.cs.meta diff --git a/Assets/NavMeshComponents/Scripts/NavMeshSurface.cs b/Runtime/NavMeshSurface.cs similarity index 74% rename from Assets/NavMeshComponents/Scripts/NavMeshSurface.cs rename to Runtime/NavMeshSurface.cs index 9fd7dab4..c0cf223d 100644 --- a/Assets/NavMeshComponents/Scripts/NavMeshSurface.cs +++ b/Runtime/NavMeshSurface.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; #if UNITY_EDITOR using UnityEditor; @@ -6,13 +7,19 @@ namespace UnityEngine.AI { + /// Sets the method for filtering the objects retrieved when baking the NavMesh. public enum CollectObjects { + /// Use all the active objects. All = 0, + /// Use all the active objects that overlap the bounding volume. Volume = 1, + /// Use all the active objects that are children of this GameObject. + /// This includes the current GameObject and all the children of the children that are active. Children = 2, } + /// Component used for building and enabling a NavMesh surface for one agent type. [ExecuteAlways] [DefaultExecutionOrder(-102)] [AddComponentMenu("Navigation/NavMeshSurface", 30)] @@ -21,62 +28,87 @@ public class NavMeshSurface : MonoBehaviour { [SerializeField] int m_AgentTypeID; + /// Gets or sets the identifier of the agent type that will use this NavMesh Surface. public int agentTypeID { get { return m_AgentTypeID; } set { m_AgentTypeID = value; } } [SerializeField] CollectObjects m_CollectObjects = CollectObjects.All; + /// Gets or sets the method for retrieving the objects that will be used for baking. public CollectObjects collectObjects { get { return m_CollectObjects; } set { m_CollectObjects = value; } } [SerializeField] Vector3 m_Size = new Vector3(10.0f, 10.0f, 10.0f); + /// Gets or sets the size of the volume that delimits the NavMesh created by this component. + /// It is used only when collectObjects is set to Volume. The size applies in the local space of the GameObject. public Vector3 size { get { return m_Size; } set { m_Size = value; } } [SerializeField] Vector3 m_Center = new Vector3(0, 2.0f, 0); + /// Gets or sets the center position of the volume that delimits the NavMesh created by this component. + /// It is used only when collectObjects is set to Volume. The position applies in the local space of the GameObject. public Vector3 center { get { return m_Center; } set { m_Center = value; } } [SerializeField] LayerMask m_LayerMask = ~0; + /// Gets or sets a bitmask representing which layers to consider when selecting the objects that will be used for baking the NavMesh. public LayerMask layerMask { get { return m_LayerMask; } set { m_LayerMask = value; } } [SerializeField] NavMeshCollectGeometry m_UseGeometry = NavMeshCollectGeometry.RenderMeshes; + /// Gets or sets which type of component in the GameObjects provides the geometry used for baking the NavMesh. public NavMeshCollectGeometry useGeometry { get { return m_UseGeometry; } set { m_UseGeometry = value; } } [SerializeField] int m_DefaultArea; + /// Gets or sets the area type assigned to any object that does not have one specified. + /// To customize the area type of an object add a component and set to true. The area type information is used when baking the NavMesh. + /// public int defaultArea { get { return m_DefaultArea; } set { m_DefaultArea = value; } } [SerializeField] bool m_IgnoreNavMeshAgent = true; + /// Gets or sets whether the process of building the NavMesh ignores the GameObjects containing a component. + /// There is generally no need for the NavMesh to take into consideration the objects that can move. public bool ignoreNavMeshAgent { get { return m_IgnoreNavMeshAgent; } set { m_IgnoreNavMeshAgent = value; } } [SerializeField] bool m_IgnoreNavMeshObstacle = true; + /// Gets or sets whether the process of building the NavMesh ignores the GameObjects containing a component. + /// There is generally no need for the NavMesh to take into consideration the objects that can move. public bool ignoreNavMeshObstacle { get { return m_IgnoreNavMeshObstacle; } set { m_IgnoreNavMeshObstacle = value; } } [SerializeField] bool m_OverrideTileSize; + /// Gets or sets whether the NavMesh building process uses the value. public bool overrideTileSize { get { return m_OverrideTileSize; } set { m_OverrideTileSize = value; } } + [SerializeField] int m_TileSize = 256; + /// Gets or sets the width of the square grid of voxels that the NavMesh building process uses for sampling the scene geometry. + /// This value represents a number of voxels. Together with it determines the real size of the individual sections that comprise the NavMesh. public int tileSize { get { return m_TileSize; } set { m_TileSize = value; } } + [SerializeField] bool m_OverrideVoxelSize; + /// Gets or sets whether the NavMesh building process uses the value. public bool overrideVoxelSize { get { return m_OverrideVoxelSize; } set { m_OverrideVoxelSize = value; } } + [SerializeField] float m_VoxelSize; + /// Gets or sets the width of the square voxels that the NavMesh building process uses for sampling the scene geometry. + /// This value is in world units. Together with it determines the real size of the individual sections that comprise the NavMesh. public float voxelSize { get { return m_VoxelSize; } set { m_VoxelSize = value; } } - // Currently not supported advanced options + // This advanced option for building a Height Mesh is currently not supported [SerializeField] bool m_BuildHeightMesh; + [Obsolete("The buildHeightMesh option has never been implemented as originally intended.")] public bool buildHeightMesh { get { return m_BuildHeightMesh; } set { m_BuildHeightMesh = value; } } - // Reference to whole scene navmesh data asset. [UnityEngine.Serialization.FormerlySerializedAs("m_BakedNavMeshData")] [SerializeField] NavMeshData m_NavMeshData; + /// Gets or sets the reference to the NavMesh data instantiated by this surface. public NavMeshData navMeshData { get { return m_NavMeshData; } set { m_NavMeshData = value; } } // Do not serialize - runtime only state. @@ -86,6 +118,7 @@ public class NavMeshSurface : MonoBehaviour static readonly List s_NavMeshSurfaces = new List(); + /// Gets the list of all the components that are currently active in the scene. public static List activeSurfaces { get { return s_NavMeshSurfaces; } @@ -103,6 +136,8 @@ void OnDisable() Unregister(this); } + /// Creates an instance of the NavMesh data and activates it in the navigation system. + /// The instance is created at the position and with the orientation of the GameObject. public void AddData() { #if UNITY_EDITOR @@ -128,12 +163,16 @@ public void AddData() m_LastRotation = transform.rotation; } + /// Removes the instance of this NavMesh data from the navigation system. + /// This operation does not destroy the . public void RemoveData() { m_NavMeshDataInstance.Remove(); m_NavMeshDataInstance = new NavMeshDataInstance(); } + /// Retrieves a copy of the current settings chosen for building this NavMesh surface. + /// The settings configured in this NavMeshSurface. public NavMeshBuildSettings GetBuildSettings() { var buildSettings = NavMesh.GetSettingsByID(m_AgentTypeID); @@ -156,6 +195,7 @@ public NavMeshBuildSettings GetBuildSettings() return buildSettings; } + /// Builds and instantiates this NavMesh surface. public void BuildNavMesh() { var sources = CollectSources(); @@ -181,6 +221,10 @@ public void BuildNavMesh() } } + /// Rebuilds parts of an existing NavMesh in the regions of the scene where the objects have changed. + /// This operation is executed asynchronously. + /// The NavMesh to update according to the changes in the scene. + /// A reference to the asynchronous coroutine that builds the NavMesh. public AsyncOperation UpdateNavMesh(NavMeshData data) { var sources = CollectSources(); @@ -378,18 +422,22 @@ Bounds CalculateWorldBounds(List sources) switch (src.shape) { case NavMeshBuildSourceShape.Mesh: - { - var m = src.sourceObject as Mesh; - result.Encapsulate(GetWorldBounds(worldToLocal * src.transform, m.bounds)); - break; - } + { + var m = src.sourceObject as Mesh; + result.Encapsulate(GetWorldBounds(worldToLocal * src.transform, m.bounds)); + break; + } case NavMeshBuildSourceShape.Terrain: - { - // Terrain pivot is lower/left corner - shift bounds accordingly - var t = src.sourceObject as TerrainData; - result.Encapsulate(GetWorldBounds(worldToLocal * src.transform, new Bounds(0.5f * t.size, t.size))); - break; - } + { +#if NMC_CAN_ACCESS_TERRAIN + // Terrain pivot is lower/left corner - shift bounds accordingly + var t = src.sourceObject as TerrainData; + result.Encapsulate(GetWorldBounds(worldToLocal * src.transform, new Bounds(0.5f * t.size, t.size))); +#else + Debug.LogWarning("The NavMesh cannot be properly baked for the terrain because the necessary functionality is missing. Add the com.unity.modules.terrain package through the Package Manager."); +#endif + break; + } case NavMeshBuildSourceShape.Box: case NavMeshBuildSourceShape.Sphere: case NavMeshBuildSourceShape.Capsule: @@ -405,8 +453,10 @@ Bounds CalculateWorldBounds(List sources) bool HasTransformChanged() { - if (m_LastPosition != transform.position) return true; - if (m_LastRotation != transform.rotation) return true; + if (m_LastPosition != transform.position) + return true; + if (m_LastRotation != transform.rotation) + return true; return false; } diff --git a/Assets/NavMeshComponents/Scripts/NavMeshSurface.cs.meta b/Runtime/NavMeshSurface.cs.meta similarity index 100% rename from Assets/NavMeshComponents/Scripts/NavMeshSurface.cs.meta rename to Runtime/NavMeshSurface.cs.meta diff --git a/Assets/NavMeshComponents/Scripts/NavMeshComponents.asmdef b/Runtime/Unity.AI.Navigation.Components.asmdef similarity index 52% rename from Assets/NavMeshComponents/Scripts/NavMeshComponents.asmdef rename to Runtime/Unity.AI.Navigation.Components.asmdef index a54b5c28..82912986 100644 --- a/Assets/NavMeshComponents/Scripts/NavMeshComponents.asmdef +++ b/Runtime/Unity.AI.Navigation.Components.asmdef @@ -8,5 +8,13 @@ "overrideReferences": false, "precompiledReferences": [], "autoReferenced": true, - "defineConstraints": [] + "defineConstraints": [], + "versionDefines": [ + { + "name": "com.unity.modules.terrain", + "expression": "1.0.0", + "define": "NMC_CAN_ACCESS_TERRAIN" + } + ], + "noEngineReferences": false } \ No newline at end of file diff --git a/Assets/NavMeshComponents/Scripts/NavMeshComponents.asmdef.meta b/Runtime/Unity.AI.Navigation.Components.asmdef.meta similarity index 100% rename from Assets/NavMeshComponents/Scripts/NavMeshComponents.asmdef.meta rename to Runtime/Unity.AI.Navigation.Components.asmdef.meta diff --git a/Samples~/.sample.json b/Samples~/.sample.json new file mode 100644 index 00000000..28f917db --- /dev/null +++ b/Samples~/.sample.json @@ -0,0 +1,5 @@ +{ + "displayName": "Build And Connect NavMesh Surfaces", + "description": "A set of examples on how to build and use a dynamic navigation space made of NavMesh surfaces and segment-to-segment connections.", + "createSeparatePackage": false +} diff --git a/Assets/Examples/Cube.prefab b/Samples~/Cube.prefab similarity index 100% rename from Assets/Examples/Cube.prefab rename to Samples~/Cube.prefab diff --git a/Assets/Examples/Cube.prefab.meta b/Samples~/Cube.prefab.meta similarity index 100% rename from Assets/Examples/Cube.prefab.meta rename to Samples~/Cube.prefab.meta diff --git a/Assets/Examples/Editor.meta b/Samples~/Editor.meta similarity index 100% rename from Assets/Examples/Editor.meta rename to Samples~/Editor.meta diff --git a/Assets/Examples/Editor/NavMeshPrefabInstanceEditor.cs b/Samples~/Editor/NavMeshPrefabInstanceEditor.cs similarity index 100% rename from Assets/Examples/Editor/NavMeshPrefabInstanceEditor.cs rename to Samples~/Editor/NavMeshPrefabInstanceEditor.cs diff --git a/Assets/Examples/Editor/NavMeshPrefabInstanceEditor.cs.meta b/Samples~/Editor/NavMeshPrefabInstanceEditor.cs.meta similarity index 100% rename from Assets/Examples/Editor/NavMeshPrefabInstanceEditor.cs.meta rename to Samples~/Editor/NavMeshPrefabInstanceEditor.cs.meta diff --git a/Assets/Examples/Editor/NavMeshComponentsExamplesEditor.asmdef b/Samples~/Editor/Unity.AI.Navigation.Components.Examples.Editor.asmdef similarity index 100% rename from Assets/Examples/Editor/NavMeshComponentsExamplesEditor.asmdef rename to Samples~/Editor/Unity.AI.Navigation.Components.Examples.Editor.asmdef diff --git a/Assets/Examples/Editor/NavMeshComponentsExamplesEditor.asmdef.meta b/Samples~/Editor/Unity.AI.Navigation.Components.Examples.Editor.asmdef.meta similarity index 100% rename from Assets/Examples/Editor/NavMeshComponentsExamplesEditor.asmdef.meta rename to Samples~/Editor/Unity.AI.Navigation.Components.Examples.Editor.asmdef.meta diff --git a/Assets/Examples/Materials.meta b/Samples~/Materials.meta similarity index 100% rename from Assets/Examples/Materials.meta rename to Samples~/Materials.meta diff --git a/Assets/Examples/Materials/brightgreen.mat b/Samples~/Materials/brightgreen.mat similarity index 100% rename from Assets/Examples/Materials/brightgreen.mat rename to Samples~/Materials/brightgreen.mat diff --git a/Assets/Examples/Materials/brightgreen.mat.meta b/Samples~/Materials/brightgreen.mat.meta similarity index 100% rename from Assets/Examples/Materials/brightgreen.mat.meta rename to Samples~/Materials/brightgreen.mat.meta diff --git a/Assets/Examples/Materials/brown.mat b/Samples~/Materials/brown.mat similarity index 100% rename from Assets/Examples/Materials/brown.mat rename to Samples~/Materials/brown.mat diff --git a/Assets/Examples/Materials/brown.mat.meta b/Samples~/Materials/brown.mat.meta similarity index 100% rename from Assets/Examples/Materials/brown.mat.meta rename to Samples~/Materials/brown.mat.meta diff --git a/Assets/Examples/Materials/crosshair.mat b/Samples~/Materials/crosshair.mat similarity index 100% rename from Assets/Examples/Materials/crosshair.mat rename to Samples~/Materials/crosshair.mat diff --git a/Assets/Examples/Materials/crosshair.mat.meta b/Samples~/Materials/crosshair.mat.meta similarity index 100% rename from Assets/Examples/Materials/crosshair.mat.meta rename to Samples~/Materials/crosshair.mat.meta diff --git a/Assets/Examples/Materials/floor.mat b/Samples~/Materials/floor.mat similarity index 100% rename from Assets/Examples/Materials/floor.mat rename to Samples~/Materials/floor.mat diff --git a/Assets/Examples/Materials/floor.mat.meta b/Samples~/Materials/floor.mat.meta similarity index 100% rename from Assets/Examples/Materials/floor.mat.meta rename to Samples~/Materials/floor.mat.meta diff --git a/Assets/Examples/Materials/green.mat b/Samples~/Materials/green.mat similarity index 100% rename from Assets/Examples/Materials/green.mat rename to Samples~/Materials/green.mat diff --git a/Assets/Examples/Materials/green.mat.meta b/Samples~/Materials/green.mat.meta similarity index 100% rename from Assets/Examples/Materials/green.mat.meta rename to Samples~/Materials/green.mat.meta diff --git a/Assets/Examples/Materials/grey.mat b/Samples~/Materials/grey.mat similarity index 100% rename from Assets/Examples/Materials/grey.mat rename to Samples~/Materials/grey.mat diff --git a/Assets/Examples/Materials/grey.mat.meta b/Samples~/Materials/grey.mat.meta similarity index 100% rename from Assets/Examples/Materials/grey.mat.meta rename to Samples~/Materials/grey.mat.meta diff --git a/Assets/Examples/Materials/modify_crosshair.png b/Samples~/Materials/modify_crosshair.png similarity index 100% rename from Assets/Examples/Materials/modify_crosshair.png rename to Samples~/Materials/modify_crosshair.png diff --git a/Assets/Examples/Materials/modify_crosshair.png.meta b/Samples~/Materials/modify_crosshair.png.meta similarity index 100% rename from Assets/Examples/Materials/modify_crosshair.png.meta rename to Samples~/Materials/modify_crosshair.png.meta diff --git a/Assets/Examples/Materials/red.mat b/Samples~/Materials/red.mat similarity index 100% rename from Assets/Examples/Materials/red.mat rename to Samples~/Materials/red.mat diff --git a/Assets/Examples/Materials/red.mat.meta b/Samples~/Materials/red.mat.meta similarity index 100% rename from Assets/Examples/Materials/red.mat.meta rename to Samples~/Materials/red.mat.meta diff --git a/Assets/Examples/Materials/yellow.mat b/Samples~/Materials/yellow.mat similarity index 100% rename from Assets/Examples/Materials/yellow.mat rename to Samples~/Materials/yellow.mat diff --git a/Assets/Examples/Materials/yellow.mat.meta b/Samples~/Materials/yellow.mat.meta similarity index 100% rename from Assets/Examples/Materials/yellow.mat.meta rename to Samples~/Materials/yellow.mat.meta diff --git a/Assets/Examples/Prefabs.meta b/Samples~/Prefabs.meta similarity index 100% rename from Assets/Examples/Prefabs.meta rename to Samples~/Prefabs.meta diff --git a/Assets/Examples/Prefabs/BanyanTree.fbx b/Samples~/Prefabs/BanyanTree.fbx similarity index 100% rename from Assets/Examples/Prefabs/BanyanTree.fbx rename to Samples~/Prefabs/BanyanTree.fbx diff --git a/Assets/Examples/Prefabs/BanyanTree.fbx.meta b/Samples~/Prefabs/BanyanTree.fbx.meta similarity index 100% rename from Assets/Examples/Prefabs/BanyanTree.fbx.meta rename to Samples~/Prefabs/BanyanTree.fbx.meta diff --git a/Assets/Examples/Prefabs/BanyanTree.prefab b/Samples~/Prefabs/BanyanTree.prefab similarity index 100% rename from Assets/Examples/Prefabs/BanyanTree.prefab rename to Samples~/Prefabs/BanyanTree.prefab diff --git a/Assets/Examples/Prefabs/BanyanTree.prefab.meta b/Samples~/Prefabs/BanyanTree.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/BanyanTree.prefab.meta rename to Samples~/Prefabs/BanyanTree.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles.meta b/Samples~/Prefabs/DungeonTiles.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles.meta rename to Samples~/Prefabs/DungeonTiles.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile0.prefab b/Samples~/Prefabs/DungeonTiles/Tile0.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile0.prefab rename to Samples~/Prefabs/DungeonTiles/Tile0.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile0.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile0.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile0.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile0.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile1.prefab b/Samples~/Prefabs/DungeonTiles/Tile1.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile1.prefab rename to Samples~/Prefabs/DungeonTiles/Tile1.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile1.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile1.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile1.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile1.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile10.prefab b/Samples~/Prefabs/DungeonTiles/Tile10.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile10.prefab rename to Samples~/Prefabs/DungeonTiles/Tile10.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile10.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile10.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile10.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile10.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile11.prefab b/Samples~/Prefabs/DungeonTiles/Tile11.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile11.prefab rename to Samples~/Prefabs/DungeonTiles/Tile11.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile11.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile11.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile11.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile11.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile12.prefab b/Samples~/Prefabs/DungeonTiles/Tile12.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile12.prefab rename to Samples~/Prefabs/DungeonTiles/Tile12.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile12.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile12.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile12.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile12.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile13.prefab b/Samples~/Prefabs/DungeonTiles/Tile13.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile13.prefab rename to Samples~/Prefabs/DungeonTiles/Tile13.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile13.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile13.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile13.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile13.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile14.prefab b/Samples~/Prefabs/DungeonTiles/Tile14.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile14.prefab rename to Samples~/Prefabs/DungeonTiles/Tile14.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile14.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile14.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile14.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile14.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile15.prefab b/Samples~/Prefabs/DungeonTiles/Tile15.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile15.prefab rename to Samples~/Prefabs/DungeonTiles/Tile15.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile15.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile15.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile15.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile15.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile2.prefab b/Samples~/Prefabs/DungeonTiles/Tile2.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile2.prefab rename to Samples~/Prefabs/DungeonTiles/Tile2.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile2.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile2.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile2.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile2.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile3.prefab b/Samples~/Prefabs/DungeonTiles/Tile3.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile3.prefab rename to Samples~/Prefabs/DungeonTiles/Tile3.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile3.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile3.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile3.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile3.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile4.prefab b/Samples~/Prefabs/DungeonTiles/Tile4.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile4.prefab rename to Samples~/Prefabs/DungeonTiles/Tile4.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile4.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile4.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile4.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile4.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile5.prefab b/Samples~/Prefabs/DungeonTiles/Tile5.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile5.prefab rename to Samples~/Prefabs/DungeonTiles/Tile5.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile5.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile5.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile5.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile5.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile6.prefab b/Samples~/Prefabs/DungeonTiles/Tile6.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile6.prefab rename to Samples~/Prefabs/DungeonTiles/Tile6.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile6.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile6.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile6.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile6.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile7.prefab b/Samples~/Prefabs/DungeonTiles/Tile7.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile7.prefab rename to Samples~/Prefabs/DungeonTiles/Tile7.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile7.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile7.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile7.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile7.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile8.prefab b/Samples~/Prefabs/DungeonTiles/Tile8.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile8.prefab rename to Samples~/Prefabs/DungeonTiles/Tile8.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile8.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile8.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile8.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile8.prefab.meta diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile9.prefab b/Samples~/Prefabs/DungeonTiles/Tile9.prefab similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile9.prefab rename to Samples~/Prefabs/DungeonTiles/Tile9.prefab diff --git a/Assets/Examples/Prefabs/DungeonTiles/Tile9.prefab.meta b/Samples~/Prefabs/DungeonTiles/Tile9.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/DungeonTiles/Tile9.prefab.meta rename to Samples~/Prefabs/DungeonTiles/Tile9.prefab.meta diff --git a/Assets/Examples/Prefabs/GroundTile.prefab b/Samples~/Prefabs/GroundTile.prefab similarity index 100% rename from Assets/Examples/Prefabs/GroundTile.prefab rename to Samples~/Prefabs/GroundTile.prefab diff --git a/Assets/Examples/Prefabs/GroundTile.prefab.meta b/Samples~/Prefabs/GroundTile.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/GroundTile.prefab.meta rename to Samples~/Prefabs/GroundTile.prefab.meta diff --git a/Assets/Examples/Prefabs/Materials.meta b/Samples~/Prefabs/Materials.meta similarity index 100% rename from Assets/Examples/Prefabs/Materials.meta rename to Samples~/Prefabs/Materials.meta diff --git a/Assets/Examples/Prefabs/Materials/BanyanBark.mat b/Samples~/Prefabs/Materials/BanyanBark.mat similarity index 100% rename from Assets/Examples/Prefabs/Materials/BanyanBark.mat rename to Samples~/Prefabs/Materials/BanyanBark.mat diff --git a/Assets/Examples/Prefabs/Materials/BanyanBark.mat.meta b/Samples~/Prefabs/Materials/BanyanBark.mat.meta similarity index 100% rename from Assets/Examples/Prefabs/Materials/BanyanBark.mat.meta rename to Samples~/Prefabs/Materials/BanyanBark.mat.meta diff --git a/Assets/Examples/Prefabs/Materials/BanyanBranches.mat b/Samples~/Prefabs/Materials/BanyanBranches.mat similarity index 100% rename from Assets/Examples/Prefabs/Materials/BanyanBranches.mat rename to Samples~/Prefabs/Materials/BanyanBranches.mat diff --git a/Assets/Examples/Prefabs/Materials/BanyanBranches.mat.meta b/Samples~/Prefabs/Materials/BanyanBranches.mat.meta similarity index 100% rename from Assets/Examples/Prefabs/Materials/BanyanBranches.mat.meta rename to Samples~/Prefabs/Materials/BanyanBranches.mat.meta diff --git a/Assets/Examples/Prefabs/Plank.prefab b/Samples~/Prefabs/Plank.prefab similarity index 100% rename from Assets/Examples/Prefabs/Plank.prefab rename to Samples~/Prefabs/Plank.prefab diff --git a/Assets/Examples/Prefabs/Plank.prefab.meta b/Samples~/Prefabs/Plank.prefab.meta similarity index 100% rename from Assets/Examples/Prefabs/Plank.prefab.meta rename to Samples~/Prefabs/Plank.prefab.meta diff --git a/Assets/Examples/Scenes.meta b/Samples~/Scenes.meta similarity index 100% rename from Assets/Examples/Scenes.meta rename to Samples~/Scenes.meta diff --git a/Assets/Examples/Scenes/1_multiple_agent_sizes.meta b/Samples~/Scenes/1_multiple_agent_sizes.meta similarity index 100% rename from Assets/Examples/Scenes/1_multiple_agent_sizes.meta rename to Samples~/Scenes/1_multiple_agent_sizes.meta diff --git a/Assets/Examples/Scenes/1_multiple_agent_sizes.unity b/Samples~/Scenes/1_multiple_agent_sizes.unity similarity index 100% rename from Assets/Examples/Scenes/1_multiple_agent_sizes.unity rename to Samples~/Scenes/1_multiple_agent_sizes.unity diff --git a/Assets/Examples/Scenes/1_multiple_agent_sizes.unity.meta b/Samples~/Scenes/1_multiple_agent_sizes.unity.meta similarity index 100% rename from Assets/Examples/Scenes/1_multiple_agent_sizes.unity.meta rename to Samples~/Scenes/1_multiple_agent_sizes.unity.meta diff --git a/Assets/Examples/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset b/Samples~/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset similarity index 100% rename from Assets/Examples/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset rename to Samples~/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset diff --git a/Assets/Examples/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset.meta b/Samples~/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset.meta similarity index 100% rename from Assets/Examples/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset.meta rename to Samples~/Scenes/1_multiple_agent_sizes/NavMesh-Geometry 1.asset.meta diff --git a/Assets/Examples/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset b/Samples~/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset similarity index 100% rename from Assets/Examples/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset rename to Samples~/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset diff --git a/Assets/Examples/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset.meta b/Samples~/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset.meta similarity index 100% rename from Assets/Examples/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset.meta rename to Samples~/Scenes/1_multiple_agent_sizes/NavMesh-Geometry.asset.meta diff --git a/Assets/Examples/Scenes/2_drop_plank.unity b/Samples~/Scenes/2_drop_plank.unity similarity index 100% rename from Assets/Examples/Scenes/2_drop_plank.unity rename to Samples~/Scenes/2_drop_plank.unity diff --git a/Assets/Examples/Scenes/2_drop_plank.unity.meta b/Samples~/Scenes/2_drop_plank.unity.meta similarity index 100% rename from Assets/Examples/Scenes/2_drop_plank.unity.meta rename to Samples~/Scenes/2_drop_plank.unity.meta diff --git a/Assets/Examples/Scenes/3_free_orientation.meta b/Samples~/Scenes/3_free_orientation.meta similarity index 100% rename from Assets/Examples/Scenes/3_free_orientation.meta rename to Samples~/Scenes/3_free_orientation.meta diff --git a/Assets/Examples/Scenes/3_free_orientation.unity b/Samples~/Scenes/3_free_orientation.unity similarity index 100% rename from Assets/Examples/Scenes/3_free_orientation.unity rename to Samples~/Scenes/3_free_orientation.unity diff --git a/Assets/Examples/Scenes/3_free_orientation.unity.meta b/Samples~/Scenes/3_free_orientation.unity.meta similarity index 100% rename from Assets/Examples/Scenes/3_free_orientation.unity.meta rename to Samples~/Scenes/3_free_orientation.unity.meta diff --git a/Assets/Examples/Scenes/3_free_orientation/NavMesh.asset b/Samples~/Scenes/3_free_orientation/NavMesh.asset similarity index 100% rename from Assets/Examples/Scenes/3_free_orientation/NavMesh.asset rename to Samples~/Scenes/3_free_orientation/NavMesh.asset diff --git a/Assets/Examples/Scenes/3_free_orientation/NavMesh.asset.meta b/Samples~/Scenes/3_free_orientation/NavMesh.asset.meta similarity index 100% rename from Assets/Examples/Scenes/3_free_orientation/NavMesh.asset.meta rename to Samples~/Scenes/3_free_orientation/NavMesh.asset.meta diff --git a/Assets/Examples/Scenes/4_sliding_window_infinite.unity b/Samples~/Scenes/4_sliding_window_infinite.unity similarity index 100% rename from Assets/Examples/Scenes/4_sliding_window_infinite.unity rename to Samples~/Scenes/4_sliding_window_infinite.unity diff --git a/Assets/Examples/Scenes/4_sliding_window_infinite.unity.meta b/Samples~/Scenes/4_sliding_window_infinite.unity.meta similarity index 100% rename from Assets/Examples/Scenes/4_sliding_window_infinite.unity.meta rename to Samples~/Scenes/4_sliding_window_infinite.unity.meta diff --git a/Assets/Examples/Scenes/5_sliding_window_terrain.unity b/Samples~/Scenes/5_sliding_window_terrain.unity similarity index 100% rename from Assets/Examples/Scenes/5_sliding_window_terrain.unity rename to Samples~/Scenes/5_sliding_window_terrain.unity diff --git a/Assets/Examples/Scenes/5_sliding_window_terrain.unity.meta b/Samples~/Scenes/5_sliding_window_terrain.unity.meta similarity index 100% rename from Assets/Examples/Scenes/5_sliding_window_terrain.unity.meta rename to Samples~/Scenes/5_sliding_window_terrain.unity.meta diff --git a/Assets/Examples/Scenes/6_modify_mesh.unity b/Samples~/Scenes/6_modify_mesh.unity similarity index 100% rename from Assets/Examples/Scenes/6_modify_mesh.unity rename to Samples~/Scenes/6_modify_mesh.unity diff --git a/Assets/Examples/Scenes/6_modify_mesh.unity.meta b/Samples~/Scenes/6_modify_mesh.unity.meta similarity index 100% rename from Assets/Examples/Scenes/6_modify_mesh.unity.meta rename to Samples~/Scenes/6_modify_mesh.unity.meta diff --git a/Assets/Examples/Scenes/7_dungeon.unity b/Samples~/Scenes/7_dungeon.unity similarity index 100% rename from Assets/Examples/Scenes/7_dungeon.unity rename to Samples~/Scenes/7_dungeon.unity diff --git a/Assets/Examples/Scenes/7_dungeon.unity.meta b/Samples~/Scenes/7_dungeon.unity.meta similarity index 100% rename from Assets/Examples/Scenes/7_dungeon.unity.meta rename to Samples~/Scenes/7_dungeon.unity.meta diff --git a/Assets/Examples/Scenes/7b_dungeon_tile_prefabs.unity b/Samples~/Scenes/7b_dungeon_tile_prefabs.unity similarity index 100% rename from Assets/Examples/Scenes/7b_dungeon_tile_prefabs.unity rename to Samples~/Scenes/7b_dungeon_tile_prefabs.unity diff --git a/Assets/Examples/Scenes/7b_dungeon_tile_prefabs.unity.meta b/Samples~/Scenes/7b_dungeon_tile_prefabs.unity.meta similarity index 100% rename from Assets/Examples/Scenes/7b_dungeon_tile_prefabs.unity.meta rename to Samples~/Scenes/7b_dungeon_tile_prefabs.unity.meta diff --git a/Assets/Examples/Scripts.meta b/Samples~/Scripts.meta similarity index 100% rename from Assets/Examples/Scripts.meta rename to Samples~/Scripts.meta diff --git a/Assets/Examples/Scripts/AgentLinkMover.cs b/Samples~/Scripts/AgentLinkMover.cs similarity index 96% rename from Assets/Examples/Scripts/AgentLinkMover.cs rename to Samples~/Scripts/AgentLinkMover.cs index fd69f95d..18cc9534 100644 --- a/Assets/Examples/Scripts/AgentLinkMover.cs +++ b/Samples~/Scripts/AgentLinkMover.cs @@ -10,6 +10,9 @@ public enum OffMeshLinkMoveMethod Curve } +/// +/// Move an agent when traversing a OffMeshLink given specific animated methods +/// [RequireComponent(typeof(NavMeshAgent))] public class AgentLinkMover : MonoBehaviour { diff --git a/Assets/Examples/Scripts/AgentLinkMover.cs.meta b/Samples~/Scripts/AgentLinkMover.cs.meta similarity index 100% rename from Assets/Examples/Scripts/AgentLinkMover.cs.meta rename to Samples~/Scripts/AgentLinkMover.cs.meta diff --git a/Assets/Examples/Scripts/ClickToMove.cs b/Samples~/Scripts/ClickToMove.cs similarity index 85% rename from Assets/Examples/Scripts/ClickToMove.cs rename to Samples~/Scripts/ClickToMove.cs index 4546da30..94a280d6 100644 --- a/Assets/Examples/Scripts/ClickToMove.cs +++ b/Samples~/Scripts/ClickToMove.cs @@ -1,7 +1,9 @@ using UnityEngine; using UnityEngine.AI; -// Use physics raycast hit from mouse click to set agent destination +/// +/// Use physics raycast hit from mouse click to set agent destination +/// [RequireComponent(typeof(NavMeshAgent))] public class ClickToMove : MonoBehaviour { diff --git a/Assets/Examples/Scripts/ClickToMove.cs.meta b/Samples~/Scripts/ClickToMove.cs.meta similarity index 100% rename from Assets/Examples/Scripts/ClickToMove.cs.meta rename to Samples~/Scripts/ClickToMove.cs.meta diff --git a/Assets/Examples/Scripts/DestroyOnTrigger.cs b/Samples~/Scripts/DestroyOnTrigger.cs similarity index 68% rename from Assets/Examples/Scripts/DestroyOnTrigger.cs rename to Samples~/Scripts/DestroyOnTrigger.cs index 3b91f21f..d5ea4a75 100644 --- a/Assets/Examples/Scripts/DestroyOnTrigger.cs +++ b/Samples~/Scripts/DestroyOnTrigger.cs @@ -1,6 +1,8 @@ using UnityEngine; -// Destroy owning GameObject if any collider with a specific tag is trespassing +/// +/// Destroy owning GameObject if any collider with a specific tag is trespassing +/// public class DestroyOnTrigger : MonoBehaviour { public string m_Tag = "Player"; diff --git a/Assets/Examples/Scripts/DestroyOnTrigger.cs.meta b/Samples~/Scripts/DestroyOnTrigger.cs.meta similarity index 100% rename from Assets/Examples/Scripts/DestroyOnTrigger.cs.meta rename to Samples~/Scripts/DestroyOnTrigger.cs.meta diff --git a/Assets/Examples/Scripts/DungeonManager.cs b/Samples~/Scripts/DungeonManager.cs similarity index 94% rename from Assets/Examples/Scripts/DungeonManager.cs rename to Samples~/Scripts/DungeonManager.cs index 3914a894..14290d2e 100644 --- a/Assets/Examples/Scripts/DungeonManager.cs +++ b/Samples~/Scripts/DungeonManager.cs @@ -1,5 +1,8 @@ using UnityEngine; +/// +/// Initialize dungeon tiles with a specified width and height +/// [DefaultExecutionOrder(-200)] public class DungeonManager : MonoBehaviour { diff --git a/Assets/Examples/Scripts/DungeonManager.cs.meta b/Samples~/Scripts/DungeonManager.cs.meta similarity index 100% rename from Assets/Examples/Scripts/DungeonManager.cs.meta rename to Samples~/Scripts/DungeonManager.cs.meta diff --git a/Assets/Examples/Scripts/EnableIffSleeping.cs b/Samples~/Scripts/EnableIffSleeping.cs similarity index 80% rename from Assets/Examples/Scripts/EnableIffSleeping.cs rename to Samples~/Scripts/EnableIffSleeping.cs index b7675d91..b7d81852 100644 --- a/Assets/Examples/Scripts/EnableIffSleeping.cs +++ b/Samples~/Scripts/EnableIffSleeping.cs @@ -1,7 +1,9 @@ using UnityEngine; -// Enables a behaviour when a rigidbody settles movement -// otherwise disables the behaviour +/// +/// Enables a behaviour when a rigidbody settles movement +/// otherwise disables the behaviour +/// public class EnableIffSleeping : MonoBehaviour { public Behaviour m_Behaviour; diff --git a/Assets/Examples/Scripts/EnableIffSleeping.cs.meta b/Samples~/Scripts/EnableIffSleeping.cs.meta similarity index 100% rename from Assets/Examples/Scripts/EnableIffSleeping.cs.meta rename to Samples~/Scripts/EnableIffSleeping.cs.meta diff --git a/Assets/Examples/Scripts/FreeCam.cs b/Samples~/Scripts/FreeCam.cs similarity index 95% rename from Assets/Examples/Scripts/FreeCam.cs rename to Samples~/Scripts/FreeCam.cs index 6fd58afe..6291b804 100644 --- a/Assets/Examples/Scripts/FreeCam.cs +++ b/Samples~/Scripts/FreeCam.cs @@ -1,5 +1,8 @@ using UnityEngine; +/// +/// Manipulating the camera with standard inputs +/// public class FreeCam : MonoBehaviour { public enum RotationAxes { MouseXAndY = 0, MouseX = 1, MouseY = 2 } diff --git a/Assets/Examples/Scripts/FreeCam.cs.meta b/Samples~/Scripts/FreeCam.cs.meta similarity index 100% rename from Assets/Examples/Scripts/FreeCam.cs.meta rename to Samples~/Scripts/FreeCam.cs.meta diff --git a/Assets/Examples/Scripts/LocalNavMeshBuilder.cs b/Samples~/Scripts/LocalNavMeshBuilder.cs similarity index 90% rename from Assets/Examples/Scripts/LocalNavMeshBuilder.cs rename to Samples~/Scripts/LocalNavMeshBuilder.cs index 0e271e2a..83b98c9f 100644 --- a/Assets/Examples/Scripts/LocalNavMeshBuilder.cs +++ b/Samples~/Scripts/LocalNavMeshBuilder.cs @@ -4,14 +4,20 @@ using System.Collections.Generic; using NavMeshBuilder = UnityEngine.AI.NavMeshBuilder; -// Build and update a localized navmesh from the sources marked by NavMeshSourceTag +/// +/// Build and update a localized navmesh from the sources marked by NavMeshSourceTag +/// [DefaultExecutionOrder(-102)] public class LocalNavMeshBuilder : MonoBehaviour { - // The center of the build + /// + /// The center of the build + /// public Transform m_Tracked; - // The size of the build bounds + /// + /// The size of the build bounds + /// public Vector3 m_Size = new Vector3(80.0f, 20.0f, 80.0f); NavMeshData m_NavMesh; diff --git a/Assets/Examples/Scripts/LocalNavMeshBuilder.cs.meta b/Samples~/Scripts/LocalNavMeshBuilder.cs.meta similarity index 100% rename from Assets/Examples/Scripts/LocalNavMeshBuilder.cs.meta rename to Samples~/Scripts/LocalNavMeshBuilder.cs.meta diff --git a/Assets/Examples/Scripts/MeshTool.cs b/Samples~/Scripts/MeshTool.cs similarity index 96% rename from Assets/Examples/Scripts/MeshTool.cs rename to Samples~/Scripts/MeshTool.cs index e39d7435..465aaba6 100644 --- a/Assets/Examples/Scripts/MeshTool.cs +++ b/Samples~/Scripts/MeshTool.cs @@ -1,7 +1,9 @@ using UnityEngine; using System.Collections.Generic; -// Manipulation tool for displacing the vertices in a list of meshes +/// +/// Manipulation tool for displacing the vertices in a list of meshes +/// public class MeshTool : MonoBehaviour { public enum ExtrudeMethod diff --git a/Assets/Examples/Scripts/MeshTool.cs.meta b/Samples~/Scripts/MeshTool.cs.meta similarity index 100% rename from Assets/Examples/Scripts/MeshTool.cs.meta rename to Samples~/Scripts/MeshTool.cs.meta diff --git a/Assets/Examples/Scripts/NavMeshPrefabInstance.cs b/Samples~/Scripts/NavMeshPrefabInstance.cs similarity index 93% rename from Assets/Examples/Scripts/NavMeshPrefabInstance.cs rename to Samples~/Scripts/NavMeshPrefabInstance.cs index 5c14fd51..1844749b 100644 --- a/Assets/Examples/Scripts/NavMeshPrefabInstance.cs +++ b/Samples~/Scripts/NavMeshPrefabInstance.cs @@ -2,6 +2,9 @@ using System.Collections.Generic; using UnityEngine.AI; +/// +/// Associate existing NavMesh data to a prefab +/// [ExecuteInEditMode] [DefaultExecutionOrder(-102)] public class NavMeshPrefabInstance : MonoBehaviour @@ -26,7 +29,8 @@ public bool followTransform // Position Tracking static readonly List s_TrackedInstances = new List(); - public static List trackedInstances {get {return s_TrackedInstances; }} + public static List trackedInstances { get { return s_TrackedInstances; } } + Vector3 m_Position; Quaternion m_Rotation; @@ -44,6 +48,9 @@ void OnDisable() RemoveTracking(); } + /// + /// Update NavMeshData instance with the current position and rotation + /// public void UpdateInstance() { m_Instance.Remove(); diff --git a/Assets/Examples/Scripts/NavMeshPrefabInstance.cs.meta b/Samples~/Scripts/NavMeshPrefabInstance.cs.meta similarity index 100% rename from Assets/Examples/Scripts/NavMeshPrefabInstance.cs.meta rename to Samples~/Scripts/NavMeshPrefabInstance.cs.meta diff --git a/Assets/Examples/Scripts/NavMeshSourceTag.cs b/Samples~/Scripts/NavMeshSourceTag.cs similarity index 77% rename from Assets/Examples/Scripts/NavMeshSourceTag.cs rename to Samples~/Scripts/NavMeshSourceTag.cs index 375ff635..50558563 100644 --- a/Assets/Examples/Scripts/NavMeshSourceTag.cs +++ b/Samples~/Scripts/NavMeshSourceTag.cs @@ -2,8 +2,10 @@ using UnityEngine.AI; using System.Collections.Generic; -// Tagging component for use with the LocalNavMeshBuilder -// Supports mesh-filter and terrain - can be extended to physics and/or primitives +/// +/// Tagging component for use with the LocalNavMeshBuilder +/// Supports mesh-filter and terrain - can be extended to physics and/or primitives +/// [DefaultExecutionOrder(-200)] public class NavMeshSourceTag : MonoBehaviour { @@ -41,7 +43,10 @@ void OnDisable() } } - // Collect all the navmesh build sources for enabled objects tagged by this component + /// + /// Collect all the navmesh build sources for enabled objects tagged by this component + /// + /// Collected NavMesh build sources public static void Collect(ref List sources) { sources.Clear(); @@ -49,10 +54,12 @@ public static void Collect(ref List sources) for (var i = 0; i < m_Meshes.Count; ++i) { var mf = m_Meshes[i]; - if (mf == null) continue; + if (mf == null) + continue; var m = mf.sharedMesh; - if (m == null) continue; + if (m == null) + continue; var s = new NavMeshBuildSource(); s.shape = NavMeshBuildSourceShape.Mesh; @@ -65,7 +72,8 @@ public static void Collect(ref List sources) for (var i = 0; i < m_Terrains.Count; ++i) { var t = m_Terrains[i]; - if (t == null) continue; + if (t == null) + continue; var s = new NavMeshBuildSource(); s.shape = NavMeshBuildSourceShape.Terrain; diff --git a/Assets/Examples/Scripts/NavMeshSourceTag.cs.meta b/Samples~/Scripts/NavMeshSourceTag.cs.meta similarity index 100% rename from Assets/Examples/Scripts/NavMeshSourceTag.cs.meta rename to Samples~/Scripts/NavMeshSourceTag.cs.meta diff --git a/Assets/Examples/Scripts/Oscillator.cs b/Samples~/Scripts/Oscillator.cs similarity index 83% rename from Assets/Examples/Scripts/Oscillator.cs rename to Samples~/Scripts/Oscillator.cs index ce126285..b40e1b1c 100644 --- a/Assets/Examples/Scripts/Oscillator.cs +++ b/Samples~/Scripts/Oscillator.cs @@ -1,6 +1,8 @@ using UnityEngine; -// Makes a transform oscillate relative to its start position +/// +/// Makes a transform oscillate relative to its start position +/// public class Oscillator : MonoBehaviour { public float m_Amplitude = 1.0f; diff --git a/Assets/Examples/Scripts/Oscillator.cs.meta b/Samples~/Scripts/Oscillator.cs.meta similarity index 100% rename from Assets/Examples/Scripts/Oscillator.cs.meta rename to Samples~/Scripts/Oscillator.cs.meta diff --git a/Assets/Examples/Scripts/RandomInstancing.cs b/Samples~/Scripts/RandomInstancing.cs similarity index 94% rename from Assets/Examples/Scripts/RandomInstancing.cs rename to Samples~/Scripts/RandomInstancing.cs index 92fce9eb..03bf6987 100644 --- a/Assets/Examples/Scripts/RandomInstancing.cs +++ b/Samples~/Scripts/RandomInstancing.cs @@ -2,7 +2,9 @@ using System.Collections.Generic; -// Fill 5x5 tiles around the local position procedurally by instantiating prefabs at random positions/orientations +/// +/// Fill 5x5 tiles around the local position procedurally by instantiating prefabs at random positions/orientations +/// [DefaultExecutionOrder(-200)] public class RandomInstancing : MonoBehaviour { @@ -120,7 +122,8 @@ static float Random(ref int seed) seed = (seed ^ 123459876); var k = seed / 127773; seed = 16807 * (seed - k * 127773) - 2836 * k; - if (seed < 0) seed = seed + 2147483647; + if (seed < 0) + seed = seed + 2147483647; float ran0 = seed * 1.0f / 2147483647.0f; seed = (seed ^ 123459876); return ran0; diff --git a/Assets/Examples/Scripts/RandomInstancing.cs.meta b/Samples~/Scripts/RandomInstancing.cs.meta similarity index 100% rename from Assets/Examples/Scripts/RandomInstancing.cs.meta rename to Samples~/Scripts/RandomInstancing.cs.meta diff --git a/Assets/Examples/Scripts/RandomWalk.cs b/Samples~/Scripts/RandomWalk.cs similarity index 86% rename from Assets/Examples/Scripts/RandomWalk.cs rename to Samples~/Scripts/RandomWalk.cs index 86ad905c..5c1aa2b7 100644 --- a/Assets/Examples/Scripts/RandomWalk.cs +++ b/Samples~/Scripts/RandomWalk.cs @@ -1,7 +1,9 @@ using UnityEngine; using UnityEngine.AI; -// Walk to a random position and repeat +/// +/// Walk to a random position and repeat +/// [RequireComponent(typeof(NavMeshAgent))] public class RandomWalk : MonoBehaviour { diff --git a/Assets/Examples/Scripts/RandomWalk.cs.meta b/Samples~/Scripts/RandomWalk.cs.meta similarity index 100% rename from Assets/Examples/Scripts/RandomWalk.cs.meta rename to Samples~/Scripts/RandomWalk.cs.meta diff --git a/Assets/Examples/Scripts/SpawnPrefabOnKeyDown.cs b/Samples~/Scripts/SpawnPrefabOnKeyDown.cs similarity index 82% rename from Assets/Examples/Scripts/SpawnPrefabOnKeyDown.cs rename to Samples~/Scripts/SpawnPrefabOnKeyDown.cs index 26f53704..e2cc6be7 100644 --- a/Assets/Examples/Scripts/SpawnPrefabOnKeyDown.cs +++ b/Samples~/Scripts/SpawnPrefabOnKeyDown.cs @@ -1,5 +1,8 @@ using UnityEngine; +/// +/// Prefab spawner with a key input +/// public class SpawnPrefabOnKeyDown : MonoBehaviour { public GameObject m_Prefab; diff --git a/Assets/Examples/Scripts/SpawnPrefabOnKeyDown.cs.meta b/Samples~/Scripts/SpawnPrefabOnKeyDown.cs.meta similarity index 100% rename from Assets/Examples/Scripts/SpawnPrefabOnKeyDown.cs.meta rename to Samples~/Scripts/SpawnPrefabOnKeyDown.cs.meta diff --git a/Assets/Examples/Terrains.meta b/Samples~/Terrains.meta similarity index 100% rename from Assets/Examples/Terrains.meta rename to Samples~/Terrains.meta diff --git a/Assets/Examples/Terrains/Islands.asset b/Samples~/Terrains/Islands.asset similarity index 100% rename from Assets/Examples/Terrains/Islands.asset rename to Samples~/Terrains/Islands.asset diff --git a/Assets/Examples/Terrains/Islands.asset.meta b/Samples~/Terrains/Islands.asset.meta similarity index 100% rename from Assets/Examples/Terrains/Islands.asset.meta rename to Samples~/Terrains/Islands.asset.meta diff --git a/Assets/Examples/Terrains/LightmapWithFog.png b/Samples~/Terrains/LightmapWithFog.png similarity index 100% rename from Assets/Examples/Terrains/LightmapWithFog.png rename to Samples~/Terrains/LightmapWithFog.png diff --git a/Assets/Examples/Terrains/LightmapWithFog.png.meta b/Samples~/Terrains/LightmapWithFog.png.meta similarity index 100% rename from Assets/Examples/Terrains/LightmapWithFog.png.meta rename to Samples~/Terrains/LightmapWithFog.png.meta diff --git a/Assets/Examples/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer b/Samples~/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer similarity index 100% rename from Assets/Examples/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer rename to Samples~/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer diff --git a/Assets/Examples/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer.meta b/Samples~/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer.meta similarity index 100% rename from Assets/Examples/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer.meta rename to Samples~/Terrains/layer_LightmapWithFog(2048.000,2048.000)(0.000,0.000)(0.000,0.000,0.000),0.000,0.000.terrainlayer.meta diff --git a/Assets/Examples/NavMeshComponentsExamples.asmdef b/Samples~/Unity.AI.Navigation.Components.Examples.asmdef similarity index 100% rename from Assets/Examples/NavMeshComponentsExamples.asmdef rename to Samples~/Unity.AI.Navigation.Components.Examples.asmdef diff --git a/Assets/Examples/NavMeshComponentsExamples.asmdef.meta b/Samples~/Unity.AI.Navigation.Components.Examples.asmdef.meta similarity index 100% rename from Assets/Examples/NavMeshComponentsExamples.asmdef.meta rename to Samples~/Unity.AI.Navigation.Components.Examples.asmdef.meta diff --git a/Assets/Tests.meta b/Tests.meta similarity index 100% rename from Assets/Tests.meta rename to Tests.meta diff --git a/Assets/Tests/Editor.meta b/Tests/Editor.meta similarity index 100% rename from Assets/Tests/Editor.meta rename to Tests/Editor.meta diff --git a/Assets/Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs b/Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs similarity index 99% rename from Assets/Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs rename to Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs index e57a2436..d7d4b0af 100644 --- a/Assets/Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs +++ b/Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs @@ -18,7 +18,7 @@ public class NavMeshModifierVolumeInPrefabTests { const string k_AutoSaveKey = "AutoSave"; - const string k_ParentFolder = "Assets/Tests/Editor"; + const string k_ParentFolder = "Assets"; const string k_TempFolderName = "TempPrefabAndModifiers"; string m_TempFolder = k_ParentFolder + "/" + k_TempFolderName; string m_PrefabPath; diff --git a/Assets/Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs.meta b/Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs.meta similarity index 100% rename from Assets/Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs.meta rename to Tests/Editor/NavMeshModifierVolumeInPrefabTests.cs.meta diff --git a/Assets/Tests/Editor/NavMeshSurfaceInPrefabTests.cs b/Tests/Editor/NavMeshSurfaceInPrefabTests.cs similarity index 99% rename from Assets/Tests/Editor/NavMeshSurfaceInPrefabTests.cs rename to Tests/Editor/NavMeshSurfaceInPrefabTests.cs index 84c8e215..afcf98f1 100644 --- a/Assets/Tests/Editor/NavMeshSurfaceInPrefabTests.cs +++ b/Tests/Editor/NavMeshSurfaceInPrefabTests.cs @@ -19,7 +19,7 @@ public class NavMeshSurfaceInPrefabTests { const string k_AutoSaveKey = "AutoSave"; - const string k_ParentFolder = "Assets/Tests/Editor"; + const string k_ParentFolder = "Assets"; const string k_TempFolderName = "TempPrefab"; string m_TempFolder = k_ParentFolder + "/" + k_TempFolderName; string m_PrefabPath; diff --git a/Assets/Tests/Editor/NavMeshSurfaceInPrefabTests.cs.meta b/Tests/Editor/NavMeshSurfaceInPrefabTests.cs.meta similarity index 100% rename from Assets/Tests/Editor/NavMeshSurfaceInPrefabTests.cs.meta rename to Tests/Editor/NavMeshSurfaceInPrefabTests.cs.meta diff --git a/Assets/Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs b/Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs similarity index 99% rename from Assets/Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs rename to Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs index c1fa1029..ce0ac3b7 100644 --- a/Assets/Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs +++ b/Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs @@ -18,7 +18,7 @@ public class NavMeshSurfaceInPrefabVariantTests { const string k_AutoSaveKey = "AutoSave"; - const string k_ParentFolder = "Assets/Tests/Editor"; + const string k_ParentFolder = "Assets"; const string k_TempFolderName = "TempPrefabVariants"; string m_TempFolder = k_ParentFolder + "/" + k_TempFolderName; string m_PrefabPath; diff --git a/Assets/Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs.meta b/Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs.meta similarity index 100% rename from Assets/Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs.meta rename to Tests/Editor/NavMeshSurfaceInPrefabVariantTests.cs.meta diff --git a/Assets/Tests/Editor/PrefabSavingUtil.cs b/Tests/Editor/PrefabSavingUtil.cs similarity index 93% rename from Assets/Tests/Editor/PrefabSavingUtil.cs rename to Tests/Editor/PrefabSavingUtil.cs index 0a0f8f2e..76e88cd1 100644 --- a/Assets/Tests/Editor/PrefabSavingUtil.cs +++ b/Tests/Editor/PrefabSavingUtil.cs @@ -2,8 +2,8 @@ using System.Reflection; using UnityEditor.Experimental.SceneManagement; -public class PrefabSavingUtil { - +public class PrefabSavingUtil +{ public static void SavePrefab(PrefabStage prefabStage) { if (prefabStage == null) diff --git a/Assets/Tests/Editor/PrefabSavingUtil.cs.meta b/Tests/Editor/PrefabSavingUtil.cs.meta similarity index 100% rename from Assets/Tests/Editor/PrefabSavingUtil.cs.meta rename to Tests/Editor/PrefabSavingUtil.cs.meta diff --git a/Assets/Tests/Editor/PrefabStageAutoSavingUtil.cs b/Tests/Editor/PrefabStageAutoSavingUtil.cs similarity index 100% rename from Assets/Tests/Editor/PrefabStageAutoSavingUtil.cs rename to Tests/Editor/PrefabStageAutoSavingUtil.cs diff --git a/Assets/Tests/Editor/PrefabStageAutoSavingUtil.cs.meta b/Tests/Editor/PrefabStageAutoSavingUtil.cs.meta similarity index 100% rename from Assets/Tests/Editor/PrefabStageAutoSavingUtil.cs.meta rename to Tests/Editor/PrefabStageAutoSavingUtil.cs.meta diff --git a/Assets/Tests/Editor/NavMeshComponentsTestsEditmode.asmdef b/Tests/Editor/Unity.AI.Navigation.Components.Editor.Tests.asmdef similarity index 100% rename from Assets/Tests/Editor/NavMeshComponentsTestsEditmode.asmdef rename to Tests/Editor/Unity.AI.Navigation.Components.Editor.Tests.asmdef diff --git a/Assets/Tests/Editor/NavMeshComponentsTestsEditmode.asmdef.meta b/Tests/Editor/Unity.AI.Navigation.Components.Editor.Tests.asmdef.meta similarity index 100% rename from Assets/Tests/Editor/NavMeshComponentsTestsEditmode.asmdef.meta rename to Tests/Editor/Unity.AI.Navigation.Components.Editor.Tests.asmdef.meta diff --git a/Assets/Examples.meta b/Tests/Runtime.meta similarity index 58% rename from Assets/Examples.meta rename to Tests/Runtime.meta index 2656aa7e..e5bebf81 100644 --- a/Assets/Examples.meta +++ b/Tests/Runtime.meta @@ -1,9 +1,8 @@ fileFormatVersion: 2 -guid: 4ea32815e218f46fba31f151ba6ec33b +guid: 077676819252b4349a7677a483a0a8f4 folderAsset: yes -timeCreated: 1477925203 -licenseType: Pro DefaultImporter: + externalObjects: {} userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Tests/NavMeshSurfaceAgentTests.cs b/Tests/Runtime/NavMeshSurfaceAgentTests.cs similarity index 99% rename from Assets/Tests/NavMeshSurfaceAgentTests.cs rename to Tests/Runtime/NavMeshSurfaceAgentTests.cs index 0917f0e1..b23946d3 100644 --- a/Assets/Tests/NavMeshSurfaceAgentTests.cs +++ b/Tests/Runtime/NavMeshSurfaceAgentTests.cs @@ -55,7 +55,7 @@ public void AgentDetachesAndAttachesToSurface() } -/* + /* [Test] public void AgentIsOnNavMeshWhenMatchingAgentTypeID() { @@ -68,7 +68,7 @@ public void AgentIsOnNavMeshWhenMatchingAgentTypeID() m_Agent.agentTypeID = 1234; Assert.IsTrue(m_Agent.isOnNavMesh); } -*/ + */ [UnityTest] public IEnumerator AgentAlignsToSurfaceNextFrame() diff --git a/Assets/Tests/NavMeshSurfaceAgentTests.cs.meta b/Tests/Runtime/NavMeshSurfaceAgentTests.cs.meta similarity index 100% rename from Assets/Tests/NavMeshSurfaceAgentTests.cs.meta rename to Tests/Runtime/NavMeshSurfaceAgentTests.cs.meta diff --git a/Assets/Tests/NavMeshSurfaceLinkTests.cs b/Tests/Runtime/NavMeshSurfaceLinkTests.cs similarity index 100% rename from Assets/Tests/NavMeshSurfaceLinkTests.cs rename to Tests/Runtime/NavMeshSurfaceLinkTests.cs diff --git a/Assets/Tests/NavMeshSurfaceLinkTests.cs.meta b/Tests/Runtime/NavMeshSurfaceLinkTests.cs.meta similarity index 100% rename from Assets/Tests/NavMeshSurfaceLinkTests.cs.meta rename to Tests/Runtime/NavMeshSurfaceLinkTests.cs.meta diff --git a/Assets/Tests/NavMeshSurfaceModifierTests.cs b/Tests/Runtime/NavMeshSurfaceModifierTests.cs similarity index 100% rename from Assets/Tests/NavMeshSurfaceModifierTests.cs rename to Tests/Runtime/NavMeshSurfaceModifierTests.cs diff --git a/Assets/Tests/NavMeshSurfaceModifierTests.cs.meta b/Tests/Runtime/NavMeshSurfaceModifierTests.cs.meta similarity index 100% rename from Assets/Tests/NavMeshSurfaceModifierTests.cs.meta rename to Tests/Runtime/NavMeshSurfaceModifierTests.cs.meta diff --git a/Assets/Tests/NavMeshSurfaceModifierVolumeTests.cs b/Tests/Runtime/NavMeshSurfaceModifierVolumeTests.cs similarity index 100% rename from Assets/Tests/NavMeshSurfaceModifierVolumeTests.cs rename to Tests/Runtime/NavMeshSurfaceModifierVolumeTests.cs diff --git a/Assets/Tests/NavMeshSurfaceModifierVolumeTests.cs.meta b/Tests/Runtime/NavMeshSurfaceModifierVolumeTests.cs.meta similarity index 100% rename from Assets/Tests/NavMeshSurfaceModifierVolumeTests.cs.meta rename to Tests/Runtime/NavMeshSurfaceModifierVolumeTests.cs.meta diff --git a/Assets/Tests/NavMeshSurfaceTests.cs b/Tests/Runtime/NavMeshSurfaceTests.cs similarity index 95% rename from Assets/Tests/NavMeshSurfaceTests.cs rename to Tests/Runtime/NavMeshSurfaceTests.cs index 02ca1f63..4378a204 100644 --- a/Assets/Tests/NavMeshSurfaceTests.cs +++ b/Tests/Runtime/NavMeshSurfaceTests.cs @@ -95,8 +95,11 @@ public void CanBuildCollidersAndIgnoreRenderMeshes() [Test] public void CanBuildRenderMeshesAndIgnoreColliders() { +#if NMC_CAN_ACCESS_PHYSICS plane.GetComponent().enabled = false; - +#else + Assert.Inconclusive("This test requires the com.unity.modules.physics package in order to run. Make sure to reference it in the project."); +#endif surface.useGeometry = NavMeshCollectGeometry.PhysicsColliders; surface.BuildNavMesh(); Assert.IsFalse(HasNavMeshAtOrigin()); @@ -182,7 +185,8 @@ public IEnumerator UpdatingAndAddingNavMesh() var oper = surface.UpdateNavMesh(navmeshData); Assert.IsFalse(HasNavMeshAtOrigin()); - do { yield return null; } while (!oper.isDone); + do + { yield return null; } while (!oper.isDone); surface.RemoveData(); surface.navMeshData = navmeshData; surface.AddData(); diff --git a/Assets/Tests/NavMeshSurfaceTests.cs.meta b/Tests/Runtime/NavMeshSurfaceTests.cs.meta similarity index 100% rename from Assets/Tests/NavMeshSurfaceTests.cs.meta rename to Tests/Runtime/NavMeshSurfaceTests.cs.meta diff --git a/Assets/Tests/NavMeshComponentsTestsPlaymode.asmdef b/Tests/Runtime/Unity.AI.Navigation.Components.Tests.asmdef similarity index 58% rename from Assets/Tests/NavMeshComponentsTestsPlaymode.asmdef rename to Tests/Runtime/Unity.AI.Navigation.Components.Tests.asmdef index 66168fcb..f82322ca 100644 --- a/Assets/Tests/NavMeshComponentsTestsPlaymode.asmdef +++ b/Tests/Runtime/Unity.AI.Navigation.Components.Tests.asmdef @@ -12,5 +12,13 @@ "overrideReferences": false, "precompiledReferences": [], "autoReferenced": true, - "defineConstraints": [] + "defineConstraints": [], + "versionDefines": [ + { + "name": "com.unity.modules.physics", + "expression": "1.0.0", + "define": "NMC_CAN_ACCESS_PHYSICS" + } + ], + "noEngineReferences": false } \ No newline at end of file diff --git a/Assets/Tests/NavMeshComponentsTestsPlaymode.asmdef.meta b/Tests/Runtime/Unity.AI.Navigation.Components.Tests.asmdef.meta similarity index 100% rename from Assets/Tests/NavMeshComponentsTestsPlaymode.asmdef.meta rename to Tests/Runtime/Unity.AI.Navigation.Components.Tests.asmdef.meta diff --git a/package.json b/package.json new file mode 100644 index 00000000..e922972e --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "name": "com.unity.ai.navigation.components", + "displayName": "NavMesh Components", + "version": "0.1.0-preview.2", + "unity": "2019.4", + "description": "High-level NavMesh components for building and using NavMeshes at runtime and at edit time.", + "dependencies": { + "com.unity.modules.ai": "1.0.0" + } +} \ No newline at end of file diff --git a/package.json.meta b/package.json.meta new file mode 100644 index 00000000..355f73f0 --- /dev/null +++ b/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: fbee67e09f48e4652bfa085460c895c7 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: From 03f7fa2947b59bb6628f353d961bc10084260d3b Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Tue, 8 Dec 2020 14:27:21 +0100 Subject: [PATCH 02/11] Rename the license file to conform with package standards --- LICENSE => LICENSE.md | 0 LICENSE.md.meta | 7 +++++++ README.md | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) rename LICENSE => LICENSE.md (100%) create mode 100644 LICENSE.md.meta diff --git a/LICENSE b/LICENSE.md similarity index 100% rename from LICENSE rename to LICENSE.md diff --git a/LICENSE.md.meta b/LICENSE.md.meta new file mode 100644 index 00000000..7c86a95e --- /dev/null +++ b/LICENSE.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: af8f9a7f066204789819c6a616afe2c0 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/README.md b/README.md index ce1c13f4..8f709118 100644 --- a/README.md +++ b/README.md @@ -55,4 +55,4 @@ A: They're not supported in the new NavMesh building feature. HeightMesh will be # Notice on the Change of License -Starting with 2020-12-08 the content of this package is [licensed](LICENSE) under the [Unity Companion License](https://unity3d.com/legal/licenses/unity_companion_license) for Unity-dependent projects. All content that was accessed under the old MIT license remains under that license. +Starting with 2020-12-08 the content of this package is [licensed](LICENSE.md) under the [Unity Companion License](https://unity3d.com/legal/licenses/unity_companion_license) for Unity-dependent projects. All content that was accessed under the old MIT license remains under that license. From 3628edfc3ad49235efce0463c8d9020740f0fcf6 Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Tue, 8 Dec 2020 14:33:14 +0100 Subject: [PATCH 03/11] Add xml documentation to NavMeshModifier Co-authored-by: Maxime Plantady Co-authored-by: Adrian Turcanu --- Runtime/NavMeshModifier.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Runtime/NavMeshModifier.cs b/Runtime/NavMeshModifier.cs index f32e80c7..bf642987 100644 --- a/Runtime/NavMeshModifier.cs +++ b/Runtime/NavMeshModifier.cs @@ -2,6 +2,10 @@ namespace UnityEngine.AI { + /// Component that modifies the properties of the GameObjects used for building a NavMesh. + /// The properties apply to the current GameObject and recursively to all its children + /// in the hierarchy. This modifier overrides the properties set to this GameObject by + /// any other NavMeshModifier in the parent hierarchy. [ExecuteInEditMode] [AddComponentMenu("Navigation/NavMeshModifier", 32)] [HelpURL("https://github.com/Unity-Technologies/NavMeshComponents#documentation-draft")] @@ -9,14 +13,21 @@ public class NavMeshModifier : MonoBehaviour { [SerializeField] bool m_OverrideArea; + /// Gets or sets whether to assign the type to this object instead of the . + /// The area type information is used when baking the NavMesh. + /// public bool overrideArea { get { return m_OverrideArea; } set { m_OverrideArea = value; } } [SerializeField] int m_Area; + /// Gets or sets the area type applied by this GameObject. + /// The range of useful values is from 0 to 31. Higher values always take precedence over lower values in the case when the surfaces of more GameObjects intersect each other to produce a NavMesh in the same region. A value of 1 has the highest priority over all the other types and it means "not walkable". Consequently, the surface of a GameObject with an area of 1 produces a hole in the NavMesh. This property has the same meaning as . + /// public int area { get { return m_Area; } set { m_Area = value; } } [SerializeField] bool m_IgnoreFromBuild; + /// Gets or sets whether the NavMesh building process ignores this GameObject and its children. public bool ignoreFromBuild { get { return m_IgnoreFromBuild; } set { m_IgnoreFromBuild = value; } } // List of agent types the modifier is applied for. @@ -26,6 +37,7 @@ public class NavMeshModifier : MonoBehaviour static readonly List s_NavMeshModifiers = new List(); + /// Gets the list of all the components that are currently active in the scene. public static List activeModifiers { get { return s_NavMeshModifiers; } @@ -42,6 +54,9 @@ void OnDisable() s_NavMeshModifiers.Remove(this); } + /// Verifies whether this modifier can affect in any way the generation of a NavMesh for a given agent type. + /// The identifier of an agent type that originates from . + /// true if this component can affect the NavMesh built for the given agent type; otherwise false. public bool AffectsAgentType(int agentTypeID) { if (m_AffectedAgents.Count == 0) From af533d13ea89b550ba4597a1c0cccebfcf1c9118 Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Tue, 8 Dec 2020 23:50:54 +0100 Subject: [PATCH 04/11] 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 8f709118..74ea0083 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 80229d604a36f540620eff5554838d1cf0f64d51 Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Wed, 9 Dec 2020 14:08:32 +0100 Subject: [PATCH 05/11] Describe in README the dependency on the github package branch --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 74ea0083..2969bbd8 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,13 @@ Detailed information can be found in the [Documentation](Documentation~) section # Setup -In Unity 2019.4 or newer versions follow the instructions in the manual about [Installing a package from a Git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html) in order to use this package directly from the GitHub repository.\ -Another way to use the package is by referencing a local clone of this repository in a project as described in the [Installing a package from a local folder](https://docs.unity3d.com/Manual/upm-ui-local.html) instructions.\ -Alternatively, you can copy the contents of the `Editor`, `Gizmos` and `Runtime` folders to an existing project.\ +In Unity 2019.4 or newer versions follow the instructions in the manual about [Installing a package from a Git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html) in order to use this package directly from the GitHub repository. On short, you can add the following line in the `dependencies` section of you project's `Packages\manifest.json` file.\ +``` "com.unity.ai.navigation.components": "https://github.com/Unity-Technologies/NavMeshComponents.git#package" ``` + +Another way to use the package is by referencing a local clone of this repository in a project as described in the [Installing a package from a local folder](https://docs.unity3d.com/Manual/upm-ui-local.html) instructions. + +Alternatively, you can copy the contents of the `Editor`, `Gizmos` and `Runtime` folders to an existing project. + Additional examples are available in the [Samples~](Samples~) folder. To try them out copy the contents of the folder into a Unity project that references this NavMesh Components package. The examples are provided "as is". They are neither generic nor robust, but serve as inspiration. # FAQ From 0c64cbdedc3056a332d85c141df89c606fec9e8c Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Fri, 11 Dec 2020 11:20:57 +0100 Subject: [PATCH 06/11] Add missing xmldoc for buildHeightMesh --- Runtime/NavMeshSurface.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/NavMeshSurface.cs b/Runtime/NavMeshSurface.cs index c0cf223d..e7747df6 100644 --- a/Runtime/NavMeshSurface.cs +++ b/Runtime/NavMeshSurface.cs @@ -99,9 +99,10 @@ public class NavMeshSurface : MonoBehaviour /// This value is in world units. Together with it determines the real size of the individual sections that comprise the NavMesh. public float voxelSize { get { return m_VoxelSize; } set { m_VoxelSize = value; } } - // This advanced option for building a Height Mesh is currently not supported [SerializeField] bool m_BuildHeightMesh; + /// (Not supported) Gets or sets whether the NavMesh building process produces more detailed elevation information. + /// [Obsolete("The buildHeightMesh option has never been implemented as originally intended.")] public bool buildHeightMesh { get { return m_BuildHeightMesh; } set { m_BuildHeightMesh = value; } } From 7f8fda26fdc582e81c892c64dfec70e8dfda0aba Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Fri, 11 Dec 2020 12:25:45 +0100 Subject: [PATCH 07/11] Specify the samples in the package manifest --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e922972e..5d0ea3c3 100644 --- a/package.json +++ b/package.json @@ -6,5 +6,12 @@ "description": "High-level NavMesh components for building and using NavMeshes at runtime and at edit time.", "dependencies": { "com.unity.modules.ai": "1.0.0" - } + }, + "samples": [ + { + "displayName": "Build And Connect NavMesh Surfaces", + "description": "A set of examples on how to build and use a dynamic navigation space made of NavMesh surfaces and segment-to-segment connections.", + "path": "Samples~" + } + ] } \ No newline at end of file From 048a238c56ce33f78a1486cc20ec6c8661d47199 Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Fri, 11 Dec 2020 13:51:50 +0100 Subject: [PATCH 08/11] Specify the author, license and repository of the package --- package.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d0ea3c3..64887be4 100644 --- a/package.json +++ b/package.json @@ -13,5 +13,14 @@ "description": "A set of examples on how to build and use a dynamic navigation space made of NavMesh surfaces and segment-to-segment connections.", "path": "Samples~" } - ] + ], + "author": { + "name": "Unity Technologies" + }, + "license": "See LICENSE.md file", + "repository": { + "type": "git", + "url": "https://github.com/Unity-Technologies/NavMeshComponents.git", + "revision": "0c64cbdedc3056a332d85c141df89c606fec9e8c" + } } \ No newline at end of file From 49d0b3b11730c51c48ce0bcc5d6cc718d061045d Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Mon, 14 Dec 2020 12:43:27 +0100 Subject: [PATCH 09/11] 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 2969bbd8..caa617af 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 bf39963b27c2a53a4bcadbe04db48f8bcae777b8 Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Mon, 15 Feb 2021 22:28:59 +0100 Subject: [PATCH 10/11] Rephrase the change of license notice in the README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index caa617af..25d4c83c 100644 --- a/README.md +++ b/README.md @@ -60,4 +60,4 @@ A: They're not supported in the new NavMesh building feature. HeightMesh will be # Notice on the Change of License -Starting with 2020-12-08 the content of this package is [licensed](LICENSE.md) under the [Unity Companion License](https://unity3d.com/legal/licenses/unity_companion_license) for Unity-dependent projects. All content that was accessed under the old MIT license remains under that license. +With effect from 8th December 2020 this package is [licensed](LICENSE.md) under the [Unity Companion License](https://unity3d.com/legal/licenses/unity_companion_license) for Unity-dependent projects. Prior to the 8th December 2020 this package was licensed under MIT and all use of the package content prior to 8th December 2020 is licensed under MIT. From 0fc6f532e4f47d66d173314efcb906bc7cf0d00f Mon Sep 17 00:00:00 2001 From: Adrian Turcanu Date: Mon, 22 Feb 2021 13:29:19 +0100 Subject: [PATCH 11/11] Correct the package version in the CHANGELOG (#193) --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57cf5e04..758671b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [0.1.0] - 2020-12-08 +## [0.1.0-preview.2] - 2020-12-08 This is the first release of the *NavMesh Components* repository in the form of a Unity package.