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

ILRuntime 域内使用 event 关键字依然要求注册 delegate #690

Closed
windsmoon opened this issue Apr 16, 2022 · 1 comment
Closed

Comments

@windsmoon
Copy link

windsmoon commented Apr 16, 2022

ILRuntime 域内使用 event 关键字依然要求注册 delegate

复现方法:
public static event Action<string, UnityEngine.SceneManagement.Scene> OnLoadFinish;
定义这样的委托,单纯在 ILRuntime 域内使用时要求在 ILRuntime 中注册委托

unity 2021.2
最新 2.02 的 ILRuntime

@SunHowe
Copy link

SunHowe commented Jul 14, 2022

同遇到该问题 热更域内直接使用delegate没问题,但是不能用event,可能没对event的add/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

2 participants