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