Page 1 of 1

LogicPlayer运行时TaskGraph连线丢失

Posted: 2024/09/02 10:01
by kvfreedom
1.png
1.png (18.19 KiB) Viewed 5382 times
2.png
2.png (21.52 KiB) Viewed 5382 times
3.png
3.png (21.67 KiB) Viewed 5382 times
4.png
4.png (22.82 KiB) Viewed 5382 times
5.png
5.png (22.34 KiB) Viewed 5382 times

Re: LogicPlayer运行时TaskGraph连线丢失

Posted: 2024/09/02 10:51
by caitsithware
感谢您的报告。
我检查并能够重现该问题,因此我将修复它。

临时解决方案
  1. 在代码编辑器中打开“Packages/Logic Toolkit/Runtime/Graph/Objects/SubGraphObject.cs”
  2. 如下更改第 83 行至 86 行。

Code: Select all

var owner = nodeGraphData.ManagedReferenceValue.Owner;
if (owner is LogicPlayer logicPlayer)
{
    owner = logicPlayer.Instance;
}
foreach (var weak in s_WeakManagedReferences)
{
    weak.ChangedId(owner, instance, changedIds);
}