[{"data":1,"prerenderedAt":148},["ShallowReactive",2],{"page-GAS-1":3,"page-count-GAS":58},[4],{"id":5,"title":6,"body":7,"date":132,"description":13,"extension":133,"meta":134,"navigation":140,"path":141,"seo":142,"stem":143,"tags":144,"__hash__":147},"blogs\u002F_legacy\u002F2026\u002F2026-01-29-ue5-gameplay-cue-migrate.md","UE5中GamePlayCue问题排查记录",{"type":8,"value":9,"toc":126},"minimark",[10,14,20,24,32,39,42,45,69,72,75,82,85,92,95,116,119,122],[11,12,13],"p",{},"GameplayCue模块在写好后没有动，迁移到新项目却发现无法触发Cue。",[15,16,17],"blockquote",{},[11,18,19],{},"当前虚幻版本UE5.7。",[21,22,23],"h2",{"id":23},"检查配置",[11,25,26,27,31],{},"对于使用了自定义管理器的情况，首先需要检查配置",[28,29,30],"code",{},"GlobalGameplayCueManagerClass","是否指向了自己的管理器(如果有定义的话)。\n同时需要检查自己定义的Cue路径是否已经添加到了配置中。",[11,33,34],{},[35,36],"img",{"alt":37,"src":38},"配置项截图","\u002Fimages\u002F2026\u002Fgame-play-cue-config.png",[21,40,41],{"id":41},"创建资产",[11,43,44],{},"GameplayCue的资产并不在资产列表，需要通过创建蓝图的流程创建，可以从以下两种类型中选择",[46,47,52],"pre",{"className":48,"code":49,"language":50,"meta":51,"style":51},"language-cpp shiki shiki-themes github-light-high-contrast github-dark monokai","AGameplayCueNotify_Actor\nUGameplayCueNotify_Static\n","cpp","",[28,53,54,63],{"__ignoreMap":51},[55,56,59],"span",{"class":57,"line":58},"line",1,[55,60,62],{"class":61},"s0idv","AGameplayCueNotify_Actor\n",[55,64,66],{"class":57,"line":65},2,[55,67,68],{"class":61},"UGameplayCueNotify_Static\n",[11,70,71],{},"两个类型之间的差别比较直观，只是好久没有用的时候会下意识的以为要从列表里面创建导致怎么都找不到。",[21,73,74],{"id":74},"打包问题",[11,76,77,78,81],{},"如果GamePlayCue在打包版本中失效，可以检查下对应的资产是否在",[28,79,80],{},"DirectoriesToAlwaysCook","中。",[11,83,84],{},"另外，最好不要在GamePlayCue和GamePlayEffect的C++定义中进行Tag操作，目前遇到两个问题，都是移除相关代码后就解决了",[11,86,87,88,91],{},"第一种，在GamePlayCue的构造函数中直接设置",[28,89,90],{},"GameplayCueTag","。",[11,93,94],{},"第二种，在GamePlayEffect的PostInitProperties中，调用:",[46,96,98],{"className":48,"code":97,"language":50,"meta":51,"style":51},"FindOrAddComponent\u003CUTargetTagRequirementsGameplayEffectComponent>()\n",[28,99,100],{"__ignoreMap":51},[55,101,102,106,109,113],{"class":57,"line":58},[55,103,105],{"class":104},"scAT4","FindOrAddComponent",[55,107,108],{"class":61},"\u003C",[55,110,112],{"class":111},"sfUV7","UTargetTagRequirementsGameplayEffectComponent",[55,114,115],{"class":61},">()\n",[11,117,118],{},"并设置OnGoing标签。",[11,120,121],{},"由于手头上是发行版本的UE，不知为何没有Gas相关的调试符号，就不进一步寻找原因了。",[123,124,125],"style",{},"html pre.shiki code .s0idv, html code.shiki .s0idv{--shiki-default:#0E1116;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html pre.shiki code .scAT4, html code.shiki .scAT4{--shiki-default:#622CBC;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .sfUV7, html code.shiki .sfUV7{--shiki-default:#702C00;--shiki-default-text-decoration:inherit;--shiki-dark:#B392F0;--shiki-dark-text-decoration:inherit;--shiki-sepia:#A6E22E;--shiki-sepia-text-decoration:underline}",{"title":51,"searchDepth":65,"depth":127,"links":128},3,[129,130,131],{"id":23,"depth":65,"text":23},{"id":41,"depth":65,"text":41},{"id":74,"depth":65,"text":74},"2026-01-29","md",{"layout":135,"excerpt":136},"post",{"type":8,"value":137},[138],[11,139,13],{},true,"\u002F2026-01-29-ue5-gameplay-cue-migrate",{"title":6,"description":13},"_legacy\u002F2026\u002F2026-01-29-ue5-gameplay-cue-migrate",[145,146],"UE5","GAS","Df64Tl-ValOYd1eYrv2zRJPx7qbHukOQv4UYAnN7u2Q",1788763176796]