LogicPlayer运行时TaskGraph连线丢失

Forum rules
Please isolate whether it is a problem with Unity itself or other assets before reporting.
Known issues are listed here: Known Issues
The information required to report a bug is as follows.
  • Logic Toolkit Version
  • Unity Version
  • How to reproduce

=======

日本語での投稿も受け付けています。
kvfreedom
Posts: 57
Joined: 2024/07/11 04:36

LogicPlayer运行时TaskGraph连线丢失

Post by kvfreedom »

1.png
1.png (18.19 KiB) Viewed 5375 times
2.png
2.png (21.52 KiB) Viewed 5375 times
3.png
3.png (21.67 KiB) Viewed 5375 times
4.png
4.png (22.82 KiB) Viewed 5375 times
5.png
5.png (22.34 KiB) Viewed 5375 times
User avatar
caitsithware
管理人
Posts: 65
Joined: 2024/03/26 01:56

Re: LogicPlayer运行时TaskGraph连线丢失

Post 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);
}
Post Reply