Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed the problem of navMesh baking error when modifying tile size. #1729

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import { Component } from "../../../components/Component";
import { Vector3 } from "../../../maths/Vector3";
import { NavTileData } from "../NavTileData";
Expand Down Expand Up @@ -440,6 +438,7 @@ export class BaseNavMeshSurface extends Component {
bindDatas.forEach((value: any) => {
NavigationUtils._freeLayaData(value);
});
this._cachedata._titleIndex.clear();
this._cachedata._cacheData = [];
}

Expand Down
5 changes: 3 additions & 2 deletions src/samples/view/IndexView2D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ import { Mesh2DRenderDemo } from "../2d/Mesh2DRenderDemo";
import { Trail2DRenderDemo } from "../2d/Trail2DRenderDemo";
import { TileMapLayerDemo } from "../2d/TileMapLayerDemo";
import { RenderCMD2DDemo } from "../2d/RenderCMD2DDemo";
import { Material2DDemo } from "../2d/Material2DDemo";

/**
* 首页View
Expand Down Expand Up @@ -261,8 +262,8 @@ export class IndexView2D extends IndexViewUI {
/************************HitTest-end***************************/

/************************Render2D-start***************************/
private _render2DTestClsArr: any[] = [Camera2DDemo, Light2DDemo, Line2DRenderDemo, Mesh2DRenderDemo, Trail2DRenderDemo, TileMapLayerDemo, RenderCMD2DDemo];
private _render2DTestArr: any[] = ['2D相机', '2D灯光示例', '2D线段渲染器', '2D网格渲染器', '2D拖尾渲染器', '瓦块地图层级示例', '2D渲染命令示例'];
private _render2DTestClsArr: any[] = [Camera2DDemo, Material2DDemo, Light2DDemo, Line2DRenderDemo, Mesh2DRenderDemo, Trail2DRenderDemo, TileMapLayerDemo, RenderCMD2DDemo];
private _render2DTestArr: any[] = ['2D相机', "2D自定义材质示例", '2D灯光示例', '2D线段渲染器', '2D网格渲染器', '2D拖尾渲染器', '瓦块地图层级示例', '2D渲染命令示例'];
/************************Render2D-end***************************/

private _bigIndex: number = -1;
Expand Down