File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 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 ( ) ;
You can’t perform that action at this time.
0 commit comments