feat(guide): 添加引导手势动画播放功能

新增dianji(点击)、huadong(滑动)两款手势动画资源及元数据文件
扩展GuideComp引导组件:新增CCString导入、动画名称配置属性,实现延迟加载并播放指定动画的逻辑,包含异常日志处理
更新引导预制体:将原hand节点重命名为shouzhi,添加Animation组件并绑定两款动画剪辑,调整默认配置
This commit is contained in:
pan
2026-06-12 08:57:44 +08:00
parent 1c74138334
commit 531343c0d7
7 changed files with 1547 additions and 240 deletions

View File

@@ -24,23 +24,23 @@
],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 14
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 18
"__id__": 20
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 640,
"y": 0,
"z": 0
},
"_lrot": {
@@ -82,11 +82,11 @@
"_active": true,
"_components": [
{
"__id__": 9
"__id__": 11
}
],
"_prefab": {
"__id__": 11
"__id__": 13
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -119,7 +119,7 @@
},
{
"__type__": "cc.Node",
"_name": "hand",
"_name": "shouzhi",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -133,10 +133,13 @@
},
{
"__id__": 6
},
{
"__id__": 8
}
],
"_prefab": {
"__id__": 8
"__id__": 10
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -240,6 +243,39 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "e4qJ7s1yxD9JrYdfGLFkVo"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": {
"__id__": 9
},
"playOnLoad": false,
"_clips": [
{
"__uuid__": "70fd0e99-c640-4497-b2c2-936f5179f227",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "be8b49e0-c726-4c44-823e-d50921b886d3",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "70fd0e99-c640-4497-b2c2-936f5179f227",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "68wJojAspAaqazqpHr1Fes"
},
{
"__type__": "cc.PrefabInfo",
"root": {
@@ -263,7 +299,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 10
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
@@ -304,7 +340,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 13
"__id__": 15
},
"_contentSize": {
"__type__": "cc.Size",
@@ -332,7 +368,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 15
"__id__": 17
},
"_alignFlags": 45,
"_target": null,
@@ -368,12 +404,13 @@
},
"_enabled": true,
"__prefab": {
"__id__": 17
"__id__": 19
},
"hand": {
"__id__": 2
},
"guide_id": 0,
"animation_name": "dianji",
"_id": ""
},
{
@@ -389,6 +426,7 @@
"__id__": 0
},
"fileId": "6dh4o/8p1Cy5An1p6o4Bc3",
"instance": null,
"targetOverrides": null
}
]