Skip to content

Commit 67678c0

Browse files
authored
Create index.js
1 parent 0afa199 commit 67678c0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/Typings/Camera/index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const Soup = require('@stews/soup');
2+
const aepl = require('aepl');
3+
const OUT = new Soup(Object);
4+
5+
class Camera {
6+
constructor(settings) {
7+
let fixedSettings = this.parent.__formSettings(this, settings);
8+
9+
/*
10+
I tried to get normalized view port rect working but it for some reason kept failling
11+
if you find a way to get it working you can reactivate it with this:
12+
13+
this.normalizedViewPortRect = new this.parent.NormalizedViewPortRect(fixedSettings.normalizedViewPortRect.__value);
14+
15+
also if you do please @ me @paishee on discord or make an issue on the github https://github.com/paishee/unityscript/issues
16+
thanks
17+
*/
18+
this.cullingMask = new this.parent.CullingMask(fixedSettings.cullingMask.__value);
19+
}
20+
}
21+
22+
23+
OUT.push("Camera", aepl.init("Camera", Camera));
24+
module.exports = OUT.pour();

0 commit comments

Comments
 (0)