Last updated
Was this helpful?
Last updated
Was this helpful?
The LayerCameraSettings class is a class which can be used to override the settings of a on a by basis. LayerCameraSettings can be used to achieve the following:
Adding a 2D layer when the main Camera is 3D
Adding a 3D layer when the main Camera is 2D
Adjusting the field of view on a 3D layer when the Camera is 3D
Adjusting the orthogonal width and height values on a 2D layer when the Camera is 2D
The following code creates a which renders in 2D even though the camera is rendering in 3D: Add the following using statement:
Add the following to Initialize after initializing FlatRedBall:
If a Layer is added through Glue, the generated code for the layer will instantiate a new LayerCameraSettings and add it to the Layer. By default these settings will match the camera at the time of Layer creation.