コード例 #1
0
ファイル: NavigationTests.cs プロジェクト: taotao111/ainav
        public void BuildTiles()
        {
            NavMeshBuildSettings buildSettings = NavMeshBuildSettings.Default();
            NavAgentSettings     agentSettings = NavAgentSettings.Default();
            NavMeshBuilder       builder       = new NavMeshBuilder(buildSettings, agentSettings);

            NavMeshTestData data = NavMeshTestData.Load();

            data.GetInputData(out float3[] vertices, out int[] indices);

            NavMeshInputBuilder input = new NavMeshInputBuilder(default);
コード例 #2
0
ファイル: NavigationTests.cs プロジェクト: taotao111/ainav
        public void BuildTiles()
        {
            NavMeshBuildSettings buildSettings = NavMeshBuildSettings.Default();
            NavAgentSettings     agentSettings = NavAgentSettings.Default();
            NavMeshBuilder       builder       = new NavMeshBuilder(buildSettings, agentSettings);

            NavMeshTestData data = NavMeshTestData.Load();

            data.GetInputData(out float3[] vertices, out int[] indices);
            GameLogger.Log("BuildTiles Inputs Vertices:{0} Triangles{1}", vertices.Length, indices.Length);

            NavMeshInputBuilder input = new NavMeshInputBuilder(default);