Property | Type | Description | |
---|---|---|---|
AspectRatio | float | ||
FarClipPlane | float | ||
NearClipPlane | float | ||
Orthogonal | bool | ||
OrthogonalHeight | float | ||
OrthogonalWidth | float | ||
X | float | ||
Y | float | ||
Z | float |
Method | Description | |
---|---|---|
CameraSave ( ) : System |
Creates a new CameraSave. This is used by the XmlSerializer when deserializing an XML. Usually CameraSaves are created using the FromCamera static method.
|
|
FromCamera ( Camera camera ) : |
Creates a new CameraSave instance using members from the passed Camera argument.
|
|
FromCamera ( Camera camera, bool setWidth ) : |
||
SetCamera ( Camera camera ) : void |
Sets the argument Camera's properties to the properties stored in this CameraSave. Usually "Save" classes include a To[RuntimeType] method. The CameraSave does not follow this pattern because it's most common that a CameraSave is loaded when a Camera is already created by the engine. In this case, it's not very convenient to have to destroy the existing Camera and replace it by a new instance. Instead, the SetCamera method will simply set the properties on an existing Camera |
public static FromCamera ( Camera camera ) : |
||
camera | Camera | The Camera to copy properties from. |
return |
public static FromCamera ( Camera camera, bool setWidth ) : |
||
camera | Camera | |
setWidth | bool | |
return |
public SetCamera ( Camera camera ) : void | ||
camera | Camera | The Camera to set the properties on. |
return | void |