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 35c3a13 + 78229d2 commit a55afedCopy full SHA for a55afed
src/codegen/languages/csharp.ts
@@ -60,8 +60,15 @@ function generateClass(klass: Class, namespace: string) {
60
61
using Colyseus.Schema;
62
using Action = System.Action;
63
+#if UNITY_5_3_OR_NEWER
64
+using UnityEngine.Scripting;
65
+#endif
66
${namespace ? `\nnamespace ${namespace} {` : ""}
67
${indent}public partial class ${klass.name} : ${klass.extends} {
68
69
+[Preserve]
70
71
+public ${klass.name}() { }
72
${klass.properties.map((prop) => generateProperty(prop, indent)).join("\n\n")}
73
74
${indent}\t/*
0 commit comments