在运行时更新角色动作
在会话中发送动作配置补丁,跟踪其更新 ID,并在确认后端已确认之前,不要假定更改已生效。
前提条件
发送运行时动作补丁
1
跟踪更新 ID
读取后端确认
using Convai.Domain.DomainEvents.Runtime;
using Convai.Runtime.Components;
ConvaiManager.ActiveManager.Events.OnDynamicContextUpdateResultReceived += result =>
{
if (result.UpdateId != "lever-unlock-01")
return;
if (result.Status == "success")
{
Debug.Log($"已确认动作:objects={result.ObjectsCount}, attention={result.CurrentAttentionObject}");
}
else
{
Debug.LogWarning($"动作补丁失败:{result.Status}");
}
};属性
类型
含义
故障排除
补丁在发送前被拒绝
从未收到任何确认
下一步
注意力与引用锚定排查角色动作问题最后更新于
这有帮助吗?