We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e27d188 commit 6c49d40Copy full SHA for 6c49d40
1 file changed
src/Workspace/index.js
@@ -33,6 +33,14 @@ class UnityscriptWorkspace {
33
this.id = this.__generateID(18, "1234567890");
34
Workspaces.push(this.id, this);
35
36
+
37
+ // workspace type (2D or 3D)
38
+ this.type = 0;
39
+ if (settings.type) {
40
+ if (typeof settings.type == "string") this.type = (settings.type.toLowerCase() == "3d") ? 0 : (settings.type.toLowerCase() == "2d") ? 1 : 0;
41
+ else this.type = settings.type;
42
+ }
43
44
45
// instances
46
Object.defineProperty(this, "__instances", {
0 commit comments