LogicPlayer运行时TaskGraph连线丢失

Forum rules
Please confirm before reporting
  • Please confirm in advance that it is a problem with LogicToolkit and not with Unity itself, other assets, or the user's project.
  • Please confirm that the problem occurs in a project with the smallest possible configuration and clarify how to reproduce it.
  • Please check if it is described in Known Issues.

Information required to report a bug
  • Logic Toolkit version
  • Unity version
  • How to reproduce

=======

報告する前の確認のお願い
  • Unity本体や他のアセット、ユーザーのプロジェクト側による問題ではなくLogicToolkitの問題であることを事前に確認してください。
  • 可能な限り最小構成のプロジェクトで問題の発生を確認し、再現方法を明確にしてください。
  • 既知の問題に記述されているかを確認してください。

バグを報告するために必要な情報
  • Logic Toolkit バージョン
  • Unity バージョン
  • 再現方法

=======

We accept posts in languages ​​other than English and Japanese, but replies will be sent via machine translation.
Thank you for your understanding.
kvfreedom
Posts: 69
Joined: 2024/07/11 04:36

LogicPlayer运行时TaskGraph连线丢失

Post by kvfreedom »

1.png
1.png (18.19 KiB) Viewed 12898 times
2.png
2.png (21.52 KiB) Viewed 12898 times
3.png
3.png (21.67 KiB) Viewed 12898 times
4.png
4.png (22.82 KiB) Viewed 12898 times
5.png
5.png (22.34 KiB) Viewed 12898 times
User avatar
caitsithware
管理人
Posts: 108
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