Class SceneViewCameraSettings
Used to store and apply scene view camera settings
Namespace: Unity.InteractiveTutorials
Syntax
[Serializable]
public class SceneViewCameraSettings
Properties
cameraMode
The Scene View camera mode
Declaration
public SceneViewCameraMode cameraMode { get; }
Property Value
Type | Description |
---|---|
SceneViewCameraMode |
enabled
Are these camera settings going to be used?
Declaration
public bool enabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
focusMode
Determines how the camera position is applied when loaded
Declaration
public SceneViewFocusMode focusMode { get; }
Property Value
Type | Description |
---|---|
SceneViewFocusMode |
frameObject
The object that can be framed by the camera
Declaration
public SceneObjectReference frameObject { get; }
Property Value
Type | Description |
---|---|
SceneObjectReference |
orthographic
Is the camera ortographic?
Declaration
public bool orthographic { get; }
Property Value
Type | Description |
---|---|
Boolean |
pivot
The point the camera will look at
Declaration
public Vector3 pivot { get; }
Property Value
Type | Description |
---|---|
Vector3 |
rotation
The rotation of the camera
Declaration
public Quaternion rotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
size
Ortographic size of the camera
Declaration
public float size { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
Apply()
Applies the saved camera settings to the current scene camera
Declaration
public void Apply()