Skip to content

Commit

Permalink
[unity] fix wrong arguments number error when BlittableCopy generating
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang committed Jul 28, 2022
1 parent 3395891 commit 0e18223
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,10 @@ namespace PuertsStaticWrap
{
Puerts.StaticTranslate<${data.Name}>.ReplaceDefault(StaticSetter, StaticGetter);
int jsEnvIdx = jsEnv.Index;
jsEnv.RegisterGeneralGetSet(typeof(${data.Name}), (IntPtr isolate, Puerts.IGetValueFromJs getValueApi, IntPtr value, bool isByRef) =>
jsEnv.RegisterGeneralGetSet(typeof(${data.Name}), (int jsEnvIdx, 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) =>
}, (int jsEnvIdx, IntPtr isolate, Puerts.ISetValueToJs setValueApi, IntPtr value, object obj) =>
{
StaticSetter(jsEnvIdx, isolate, setValueApi, value, (${data.Name})obj);
});
Expand Down

0 comments on commit 0e18223

Please sign in to comment.