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 a3bff47 commit 3c9fab4Copy full SHA for 3c9fab4
UnityFileSystem/TypeTreeNode.cs
@@ -168,9 +168,26 @@ Type GetCSharpType()
168
return typeof(string);
169
170
default:
171
- //if (!IsLeaf)
+ {
172
+ if (Size == 8)
173
174
+ return typeof(long);
175
+ }
176
+ else if (Size == 4)
177
178
+ return typeof(int);
179
180
+ else if (Size == 2)
181
182
+ return typeof(short);
183
184
+ else if (Size == 1)
185
186
+ return typeof(sbyte);
187
188
+
189
return typeof(object);
- //break;
190
191
}
192
193
throw new Exception($"Unknown type {Type}");
0 commit comments