We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58d5eec + dbc75ec commit 97cd268Copy full SHA for 97cd268
Unity/Assets/NativeScript/Editor/GenerateBindings.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Collections;
3
using System.Collections.Generic;
4
using System.IO;
@@ -4163,7 +4163,8 @@ static void AppendMethod(
4163
AppendCppMethodDeclaration(
4164
cppMethodName,
4165
enclosingTypeIsStatic,
4166
- false,
+ // Mark as virtual if method/class is not static or generic
4167
+ cppMethodIsStatic || enclosingTypeIsStatic || methodTypeParams != null? false : true,
4168
cppMethodIsStatic,
4169
cppReturnType,
4170
methodTypeParams,
0 commit comments