Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotifyUObjectLuaGC方法里调用AutoObjectReference.Remove #738

Open
RJie opened this issue Jan 14, 2025 · 0 comments
Open

NotifyUObjectLuaGC方法里调用AutoObjectReference.Remove #738

RJie opened this issue Jan 14, 2025 · 0 comments

Comments

@RJie
Copy link

RJie commented Jan 14, 2025

Lua包装的UObject对象在GC的时候,会调用到NotifyUObjectLuaGC,这里会调用Env->AutoObjectReference.Remove(Object)。
但是发现只有DelegateRegistry在使用这个AutoObjectReference,只会添加ULuaDelegateHandler对象。
所以想问下为什么要在UObject GC的时候移除AutoObjectReference里面的元素呢?
是否可以去掉NotifyUObjectLuaGC方法里的这个AutoObjectReference.Remove调用?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant