A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(ci): the component reference lists MeshInstances and PlacedFoliage
yhhf14f145997a8
diff --git a/desktop b/desktopindex 3e2986799..cf048c839 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 3e2986799950a44f583a289930c7497b3160f22c+Subproject commit cf048c8394110ae80bf67e30484335cfc60bea97diff --git a/docs/astro/src/data/componentDocs.ts b/docs/astro/src/data/componentDocs.tsindex 30184e6bf..5ffbc1057 100644--- a/docs/astro/src/data/componentDocs.ts+++ b/docs/astro/src/data/componentDocs.ts@@ -92,6 +92,8 @@ export const COMPONENT_DOCS: Record<string, ComponentDoc> = {StaticBatch: { category: 'graphics', summary: 'Marks a mesh that will not move, so the meshes sharing its material are merged into one draw while the game runs; it also records what became of this one.', doc: 'performance/static-batching', anchor: 'what-happens', anchorZh: '会发生什么' },Terrain: { category: 'graphics', summary: 'Ground made from a heightmap or noise, painted by height and slope, and drawn in chunks that coarsen with distance.', doc: 'graphics/terrain', anchor: 'the-component', anchorZh: '组件' },Foliage: { category: 'graphics', summary: 'Scatters grass or a mesh across an area and over a terrain, drawn a cell at a time, swaying in the wind and thinning out with distance.', doc: 'graphics/foliage', anchor: 'the-component', anchorZh: '组件' },+ PlacedFoliage: { category: 'graphics', summary: 'Keeps every plant an artist placed by hand as data in one entity, grown a cell at a time as instances of the plants\' own meshes.', doc: 'graphics/foliage', anchor: 'placed-plants', anchorZh: '手摆植物' },+ MeshInstances: { category: 'graphics', summary: 'Draws the mesh of a MeshRenderer at many places as one renderable, culling each place and choosing its mesh by distance.', doc: 'graphics/foliage', anchor: 'placed-plants', anchorZh: '手摆植物' },Floating: { category: 'graphics', summary: 'Holds a RigidBody3D up in water and carries it with the current, by forces at a few points of the body.', doc: 'graphics/water', anchor: 'floating', anchorZh: '漂浮' },Spline: { category: 'graphics', summary: 'A curve through points, each with a width, read by what follows it (a river\'s WaterBody on the same entity); measured by the distance along it.', doc: 'graphics/water', anchor: 'splines', anchorZh: '样条' },WaterBody: { category: 'graphics', summary: 'An ocean, a lake or a river: where the water is, how high its waves stand and how it flows; drawn as part of its zone\'s one surface.', doc: 'graphics/water', anchor: 'the-component', anchorZh: '组件' },diff --git a/docs/astro/src/data/components.generated.json b/docs/astro/src/data/components.generated.jsonindex c2da37fd9..e2fd087cd 100644--- a/docs/astro/src/data/components.generated.json+++ b/docs/astro/src/data/components.generated.json@@ -2537,6 +2537,36 @@}]},+ {+ "name": "MeshInstances",+ "source": "cpp",+ "fields": [+ {+ "key": "lod1Mesh",+ "type": "Asset<mesh>",+ "default": "none",+ "doc": "The cheaper mesh used past the LOD distance. Needs the same channels as the mesh."+ },+ {+ "key": "lodDistance",+ "type": "number",+ "default": "0",+ "doc": "Distance (metres) past which the cheaper mesh is used. 0 = never."+ },+ {+ "key": "minDistance",+ "type": "number",+ "default": "0",+ "doc": "Distance (metres) nearer than which an instance is not drawn. 0 = from the eye."+ },+ {+ "key": "drawDistance",+ "type": "number",+ "default": "0",+ "doc": "Distance (metres) past which an instance is not drawn. 0 = unlimited."+ }+ ]+ },{"name": "MeshLightmap","source": "cpp",diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex d3840ba61..c8d8d23a7 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -2904,6 +2904,8 @@ export const NOTED = {{"note":"Resizing a viewport no longer piles up render targets."},"feat(editor): the edit world lets go of a generated world while the game plays":{"note":"The editor lets go of a generated world while the game plays."},+ "fix(ci): the component reference lists MeshInstances and PlacedFoliage":+ {"internal":"Reference snapshot and doc links."},"feat(assets): a project names folders its asset database leaves alone":{"note":"A project can keep folders out of its asset database."},"feat(worldgen): a plant part may cast no shadow, and far cells are capped at two cells wide":