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.
1 parent b234c91 commit dbc75ecCopy full SHA for dbc75ec
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;
@@ -4155,7 +4155,8 @@ static void AppendMethod(
4155
AppendCppMethodDeclaration(
4156
cppMethodName,
4157
enclosingTypeIsStatic,
4158
- false,
+ // Mark as virtual if method/class is not static or generic
4159
+ cppMethodIsStatic || enclosingTypeIsStatic || methodTypeParams != null? false : true,
4160
cppMethodIsStatic,
4161
cppReturnType,
4162
methodTypeParams,
0 commit comments