Skip to content

Commit

Permalink
add PUERTS_DISABLE_SLOWBINDING fix #1065 (#1138)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang authored Dec 23, 2022
1 parent 0a90e11 commit 465c5d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unity/Assets/Puerts/Runtime/Src/TypeRegister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,11 @@ private int RegisterType(IntPtr isolate, Type type, bool includeNoPublic)

typeId = PuertsDLL.RegisterClass(jsEnv.isolate, baseTypeId, type.AssemblyQualifiedName, constructorWrap, null, jsEnv.AddConstructor(constructorCallback));

#if PUERTS_DISABLE_SLOWBINDING
if (!typeof(Puerts.ILoader).IsAssignableFrom(type)) {
return typeId;
}
#endif
// methods and properties
MethodInfo[] methods = Puerts.Utils.GetMethodAndOverrideMethod(type, flag);

Expand Down

0 comments on commit 465c5d5

Please sign in to comment.