add documentation link for asset and middleware (#14415)

This commit is contained in:
Santy-Wang
2023-03-01 10:03:42 +08:00
committed by GitHub
parent 1ef81e4330
commit 72b43bee15
4 changed files with 96 additions and 8 deletions
+3 -3
View File
@@ -153,7 +153,7 @@ interface BoneIndex extends Number {
* @extends RenderComponent
*/
@ccclass('dragonBones.ArmatureDisplay')
@help('i18n:dragonBones.ArmatureDisplay')
@help('i18n:cc.DragonBones')
@menu('DragonBones/ArmatureDisplay')
@executeInEditMode
export class ArmatureDisplay extends UIRenderer {
@@ -530,7 +530,7 @@ export class ArmatureDisplay extends UIRenderer {
protected _sockets: DragonBoneSocket[] = [];
private _inited;
private _drawInfoList : RenderDrawInfo[] = [];
private _drawInfoList: RenderDrawInfo[] = [];
private requestDrawInfo (idx: number) {
if (!this._drawInfoList[idx]) {
this._drawInfoList[idx] = new RenderDrawInfo();
@@ -589,7 +589,7 @@ export class ArmatureDisplay extends UIRenderer {
super.destroyRenderData();
}
private getMaterialTemplate () : Material {
private getMaterialTemplate (): Material {
if (this.customMaterial !== null) return this.customMaterial;
if (this.material) return this.material;
this.updateMaterial();
+1 -1
View File
@@ -177,7 +177,7 @@ js.setClassAlias(SpineSocket, 'sp.Skeleton.SpineSocket');
* @extends UIRenderer
*/
@ccclass('sp.Skeleton')
@help('i18n:sp.Skeleton')
@help('i18n:cc.Spine')
@menu('Spine/Skeleton')
@executeInEditMode
export class Skeleton extends UIRenderer {
+46 -2
View File
@@ -68,13 +68,57 @@ module.exports = {
WebView: `${url}/${version}/manual/en/ui-system/components/editor/webview.html`,
SafeArea: `${url}/${version}/manual/en/ui-system/components/editor/safearea.html`,
Terrain: `${url}/${version}/manual/en/editor/terrain/`,
TiledMap: ``,
Spine: ``,
TiledMap: `${url}/${version}/manual/en/editor/components/tiledmap.html`,
Spine: `${url}/${version}/manual/en/editor/components/spine.html`,
DragonBones: `${url}/${version}/manual/en/editor/components/dragonbones.html`,
OctreeCulling: `${url}/${version}/manual/en/advanced-topics/native-scene-culling.html`,
LightProbe: ``,
},
assets: {
javascript: `${url}/${version}/manual/en/concepts/scene/node-component.html`,
texture: `${url}/${version}/manual/en/asset/texture.html`,
'texture-cube': `${url}/${version}/manual/en/asset/texture-cube.html`,
typescript: `${url}/${version}/manual/en/scripting/setup.html`,
'animation-clip': `${url}/${version}/manual/en/animation/animation-clip.html`,
'animation-graph': `${url}/${version}/manual/en/animation/marionette/animation-graph.html`,
'animation-mask': `${url}/${version}/manual/en/animation/marionette/animation-mask.html`,
'audio-clip': `${url}/${version}/manual/en/asset/audio.html`,
'auto-atlas': `${url}/${version}/manual/en/asset/auto-atlas.html`,
'bitmap-font': `${url}/${version}/manual/en/asset/font.html#bitmap-fonts`,
buffer: ``,
'effect-header': `${url}/${version}/manual/en/shader/effect-chunk-index.html`,
effect: `${url}/${version}/manual/en/shader/effect-inspector.html`,
'erp-texture-cube': `${url}/${version}/manual/en/asset/texture-cube.html`,
gltf: `${url}/${version}/manual/en/asset/model/glTF.html`,
fbx: `${url}/${version}/manual/en/asset/model/mesh.html`,
json: `${url}/${version}manual/en/asset/json.html`,
'label-atlas': `${url}/${version}/manual/en/asset/label-atlas.html`,
material: `${url}/${version}/manual/en/asset/material.html`,
particle: '',
'physics-material': `${url}/${version}/manual/en/physics/physics-material.html`,
prefab: `${url}/${version}/manual/en/asset/prefab.html`,
'render-flow': `${url}/${version}/manual/en/render-pipeline/user-pipeline.html`,
'render-pipeline': `${url}/${version}/manual/en/render-pipeline/user-pipeline.html`,
'render-stage': `${url}/${version}/manual/en/render-pipeline/user-pipeline.html`,
'spine-data': `${url}/${version}/manual/en/asset/spine.html`,
'sprite-atlas': `${url}/${version}/manual/en/asset/atlas.html`,
'sprite-frame': `${url}/${version}/manual/en/asset/sprite-frame.html`,
terrain: `${url}/${version}/manual/en/editor/terrain/#creating-terrain-objects-and-assets`,
text: `${url}/${version}/manual/en/asset/text.html`,
'tiled-map': `${url}/${version}/manual/manual/en/asset/tiledmap.html`,
'ttf-font': `${url}/${version}/manual/en/asset/font.html#dynamic-fonts`,
'video-clip': ``,
'render-texture': `${url}/${version}/manual/en/asset/render-texture.html`,
dragonbones: `${url}/${version}/manual/en/asset/dragonbones.html`,
'dragonbones-atlas': `${url}/${version}/manual/en/asset/dragonbones.html`,
scene: `${url}/${version}/manual/en/asset/scene.html`,
image: `${url}/${version}/manual/en/asset/image.html`,
'gltf-animation':`${url}/${version}/manual/en/animation/animation-clip.html`,
'gltf-embeded-image': `${url}/${version}/manual/en/asset/model/glTF.html#gltf-image`,
'gltf-material': `${url}/${version}/manual/en/asset/material.html`,
'gltf-mesh': `${url}/${version}/manual/en/asset/model/glTF.html#gltf-mesh`,
'gltf-scene': `${url}/${version}/manual/en/asset/model/glTF.html#gltf-scene`,
'gltf-skeleton': `${url}/${version}/manual/en/asset/model/glTF.html#gltf-skins`,
},
},
ambient: {
+46 -2
View File
@@ -68,13 +68,57 @@ module.exports = {
WebView: `${url}/${version}/manual/zh/ui-system/components/editor/webview.html`,
SafeArea: `${url}/${version}/manual/zh/ui-system/components/editor/safearea.html`,
Terrain: `${url}/${version}/manual/zh/editor/terrain/`,
TiledMap: ``,
Spine: ``,
TiledMap: `${url}/${version}/manual/zh/editor/components/tiledmap.html`,
Spine: `${url}/${version}/manual/zh/editor/components/spine.html`,
DragonBones: `${url}/${version}/manual/zh/editor/components/dragonbones.html`,
OctreeCulling: `${url}/${version}/manual/zh/advanced-topics/native-scene-culling.html`,
LightProbe: ``,
},
assets: {
javascript: `${url}/${version}/manual/zh/concepts/scene/node-component.html`,
texture: `${url}/${version}/manual/zh/asset/texture.html`,
'texture-cube': `${url}/${version}/manual/zh/asset/texture-cube.html`,
typescript: `${url}/${version}/manual/zh/scripting/setup.html`,
'animation-clip': `${url}/${version}/manual/zh/animation/animation-clip.html`,
'animation-graph': `${url}/${version}/manual/zh/animation/marionette/animation-graph.html`,
'animation-mask': `${url}/${version}/manual/zh/animation/marionette/animation-mask.html`,
'audio-clip': `${url}/${version}/manual/zh/asset/audio.html`,
'auto-atlas': `${url}/${version}/manual/zh/asset/auto-atlas.html`,
'bitmap-font': `${url}/${version}manual/zh/asset/font.html#位图字体`,
buffer: ``,
'effect-header': `${url}/${version}/manual/zh/shader/effect-chunk-index.html`,
effect: `${url}/${version}/manual/zh/shader/effect-inspector.html`,
'erp-texture-cube': `${url}/${version}/manual/zh/asset/texture-cube.html`,
gltf: `${url}/${version}/manual/zh/asset/model/glTF.html`,
fbx: `${url}/${version}/manual/zh/asset/model/mesh.html`,
json: `${url}/${version}manual/zh/asset/json.html`,
'label-atlas': `${url}/${version}/manual/zh/asset/label-atlas.html`,
material: `${url}/${version}/manual/zh/asset/material.html`,
particle: '',
'physics-material': `${url}/${version}/manual/zh/physics/physics-material.html`,
prefab: `${url}/${version}/manual/zh/asset/prefab.html`,
'render-flow': `${url}/${version}/manual/zh/render-pipeline/user-pipeline.html`,
'render-pipeline': `${url}/${version}/manual/zh/render-pipeline/user-pipeline.html`,
'render-stage': `${url}/${version}/manual/zh/render-pipeline/user-pipeline.html`,
'spine-data': `${url}/${version}/manual/zh/asset/spine.html`,
'sprite-atlas': `${url}/${version}/manual/zh/asset/atlas.html`,
'sprite-frame': `${url}/${version}/manual/zh/asset/sprite-frame.html`,
terrain: `${url}/${version}/manual/zh/editor/terrain/#创建地形`,
text: `${url}/${version}/manual/zh/asset/text.html`,
'tiled-map': `${url}/${version}/manual/manual/zh/asset/tiledmap.html`,
'ttf-font': `${url}/${version}/manual/zh/asset/font.html#动态字体`,
'video-clip': ``,
'render-texture': `${url}/${version}/manual/zh/asset/render-texture.html`,
dragonbones: `${url}/${version}/manual/zh/asset/dragonbones.html`,
'dragonbones-atlas': `${url}/${version}/manual/zh/asset/dragonbones.html`,
scene: `${url}/${version}/manual/zh/asset/scene.html`,
image: `${url}/${version}/manual/zh/asset/image.html`,
'gltf-animation':`${url}/${version}/manual/zh/animation/animation-clip.html`,
'gltf-embeded-image': `${url}/${version}/manual/zh/asset/model/glTF.html#gltf-图像`,
'gltf-material': `${url}/${version}/manual/zh/asset/material.html`,
'gltf-mesh': `${url}/${version}/manual/zh/asset/model/glTF.html#网格渲染器`,
'gltf-scene': `${url}/${version}/manual/zh/asset/model/glTF.html#gltf-场景`,
'gltf-skeleton': `${url}/${version}/manual/zh/asset/model/glTF.html#gltf-蒙皮`,
},
},
ambient: {