Closed lovepurple closed 1 year ago
public static void InitBlittableCopy(Puerts.JsEnv jsEnv) { Puerts.StaticTranslate<UnityEngine.Vector3>.ReplaceDefault(StaticSetter, StaticGetter); int jsEnvIdx = jsEnv.Index; jsEnv.RegisterGeneralGetSet(typeof(UnityEngine.Vector3), (IntPtr isolate, Puerts.IGetValueFromJs getValueApi, IntPtr value, bool isByRef) => { return StaticGetter(jsEnvIdx, isolate, getValueApi, value, isByRef); }, (IntPtr isolate, Puerts.ISetValueToJs setValueApi, IntPtr value, object obj) => { StaticSetter(jsEnvIdx, isolate, setValueApi, value, (UnityEngine.Vector3)obj); }); }
Assets\Gen\UnityEngine_Vector3_Wrap.cs(2053,16): error CS1593: Delegate 'GeneralSetter' does not take 4 arguments
Windows 10 Unity2020.3.36f1 LTS Puerts版本 1.4.0 PuertTs-webgl 版本 1.0.0
1.Binding中配置 Vector3类型,同时在BlittableCopy中也配置Vecor3 2.开启Unity Allow 'unsafe' code
主仓中已修复
error log | 日志或报错信息
Assets\Gen\UnityEngine_Vector3_Wrap.cs(2053,16): error CS1593: Delegate 'GeneralSetter' does not take 4 arguments
context | 编译/运行环境
Windows 10 Unity2020.3.36f1 LTS Puerts版本 1.4.0 PuertTs-webgl 版本 1.0.0
how to reproduce | 复现步骤
1.Binding中配置 Vector3类型,同时在BlittableCopy中也配置Vecor3 2.开启Unity Allow 'unsafe' code