new View(scene, camera, xRatio, yRatio, widthRatio, heightRatio)
Parameters:
Name | Type | Description |
---|---|---|
scene |
The |
|
camera |
The |
|
xRatio |
The ratio (0 - 1) of the top-left corner of the view's horizontal position relative to the screen width. |
|
yRatio |
The ratio (0 - 1) of the top-left corner of the view vertical position relative to the screen height. |
|
widthRatio |
The ratio (0 - 1) of the top-left corner of the view's width relative to the screen width. |
|
heightRatio |
The ratio (0 - 1) of the top-left corner of the view's height relative to the screen height. |
Members
-
camera
-
The
Camera
to use for this view. -
heightRatio
-
The ratio (0 - 1) of the top-left corner of the view's height relative to the screen height.
-
scene
-
The
Scene
to render to this view. -
widthRatio
-
The ratio (0 - 1) of the top-left corner of the view's width relative to the screen width.
-
xRatio
-
The ratio (0 - 1) of the top-left corner of the view's horizontal position relative to the screen width.
-
yRatio
-
The ratio (0 - 1) of the top-left corner of the view's vertical position relative to the screen height.