crazytuzi / UnrealCSharp

UnrealCSharp, based on .NET 8 (Mono), is a C# programming plugin for UE.
https://unrealcsharp.github.io/
MIT License
463 stars 72 forks source link

C# UObject 监听 delegate 一段时间后,监听的回调函数不会被触发 #390

Closed tiagochen closed 1 month ago

tiagochen commented 1 month ago

问题概述: 1、cpp actor 定义一个 delegate,在Tick中进行 broadcast 2、c# actor 监听 cpp actor delegate ,并打印日志 3、在运行一段时间后, c# 回调就不会再触发,看上去显示c# actor已经被垃圾回收 详细复现路径: 8c195e08d2b559f764ea78c1ab2c80f5 a7a4a8695b6d73f482e8e300fa93fbf8 0a638e57616c190d08bbdf9b697e5ccb 29443b1a16df5f0df4f7272b0751955d