You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log: Assets\Gen\UnityEngine_Screen_Wrap.cs(198,78): error CS1615: Argument 1 may not be passed with the 'ref' keyword
code: var result = UnityEngine.Screen.MoveMainWindowTo(ref Arg0, Arg1);
这个问题手动删除ref可解决。
2.加载init.mjs失败
log:
Exception: puerts/init.mjs:1: Error: resolve module puerts/init.mjs error: Object reference not set to an instance of an object
Error: resolve module puerts/init.mjs error: Object reference not set to an instance of an object
at puerts/init.mjs:1:7
Puerts.JsEnv.ExecuteModule (System.String filename) (at Assets/Puerts/Runtime/Src/JsEnv.cs:256)
Puerts.JsEnv..ctor (Puerts.ILoader loader, System.Int32 debugPort, System.IntPtr externalRuntime, System.IntPtr externalContext) (at Assets/Puerts/Runtime/Src/JsEnv.cs:166)
Puerts.JsEnv..ctor (Puerts.ILoader loader, System.Int32 debugPort) (at Assets/Puerts/Runtime/Src/JsEnv.cs:68)
PuertsMgr.Init () (at Assets/Scripts/Engine/Puerts/PuertsMgr.cs:15)
GameLanch.Start () (at Assets/Scripts/GameLanch.cs:26)
code:
public void Init() {
loader = new Loader(Path.Combine(Application.streamingAssetsPath,"JavaScript"));
jsEnv = new JsEnv(loader); // 实例化 js 虚拟机
#if UNITY_EDITOR
jsEnv.WaitDebuggerAsync(); // 启用调试
#endif
}
The text was updated successfully, but these errors were encountered:
Unity版本:2021.3.0f1c1
问题描述:升级前可以正常运行,升级后报错。
1.自动生成代码错误
log:
Assets\Gen\UnityEngine_Screen_Wrap.cs(198,78): error CS1615: Argument 1 may not be passed with the 'ref' keyword
code:
var result = UnityEngine.Screen.MoveMainWindowTo(ref Arg0, Arg1);
这个问题手动删除ref可解决。
2.加载init.mjs失败
log:
code:
The text was updated successfully, but these errors were encountered: