# SVirtualCamera

**Members** 10

|          |                                       |                                                           |
| -------- | ------------------------------------- | --------------------------------------------------------- |
| Property | [Enabled](#enabled)                   | Is this virtual camera enabled?                           |
| Property | [FieldOfView](#fieldofview)           | Field of view of this virtual camera.                     |
| Property | [Dutch](#dutch)                       | Dutch of view of this virtual camera.                     |
| Property | [NearClip](#nearclip)                 | The near clip plane of this virtual camera.               |
| Property | [FarClip](#farclip)                   | The far clip plane of this virtual camera.                |
| Property | [OrthographicSize](#orthographicsize) | The orthographic size of this virtual camera.             |
| Property | [Priority](#priority)                 | The priority of this virtual camera.                      |
| Property | [Follow](#follow)                     | The object that this virtual camera should be following.  |
| Property | [LookAt](#lookat)                     | The object that this virtual camera should be looking at. |
| Property | [GameObject](#gameobject)             | –                                                         |

## Properties

### Enabled

bool Enabled {get; set; }

Is this virtual camera enabled?

Example

**Lua**

```lua
Space.Host.ExecutingObject.VirtualCamera.Enabled = true

```

**Lua**

```lua
--clicking this object will Enable/Disable it's Virtual Camera component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.VirtualCamera

OnClick = function()
component.Enabled =  not component.Enabled
end


thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)

```

### FieldOfView

float FieldOfView {get; set; }

Field of view of this virtual camera.

Example

**Lua**

```lua
Space.Host.ExecutingObject.VirtualCamera.FieldOfView = 50.0

```

### Dutch

float Dutch {get; set; }

Dutch of view of this virtual camera. In degrees.

Example

**Lua**

```lua
Space.Host.ExecutingObject.VirtualCamera.Dutch = 50.0

```

### NearClip

float NearClip {get; set; }

The near clip plane of this virtual camera.

Example

**Lua**

```lua
Space.Host.ExecutingObject.VirtualCamera.NearClip = 50.0

```

### FarClip

float FarClip {get; set; }

The far clip plane of this virtual camera.

Example

**Lua**

```lua
Space.Host.ExecutingObject.VirtualCamera.FarClip = 50.0

```

### OrthographicSize

float OrthographicSize {get; set; }

The orthographic size of this virtual camera.

Example

**Lua**

```lua
Space.Host.ExecutingObject.VirtualCamera.OrthographicSize = 10.0

```

### Priority

int Priority {get; set; }

The priority of this virtual camera. Higher priority cameras will be used over lower priority cameras when conflicted.

Example

**Lua**

```lua
Space.Host.ExecutingObject.VirtualCamera.Priority = 500

```

### Follow

[SGameObject](/docs/scripting/client-scripting-api-reference/types/sgameobject.md) Follow {get; set; }

The object that this virtual camera should be following.

Example

**Lua**

```lua
AReferenceToGameObject = Space.Host.GetReference("Reference Name")
Space.Host.ExecutingObject.VirtualCamera.Follow = AReferenceToGameObject

```

### LookAt

[SGameObject](/docs/scripting/client-scripting-api-reference/types/sgameobject.md) LookAt {get; set; }

The object that this virtual camera should be looking at.

Example

**Lua**

```lua
AReferenceToGameObject = Space.Host.GetReference("Reference Name")
Space.Host.ExecutingObject.VirtualCamera.LookAt = AReferenceToGameObject

```

### GameObject

[SGameObject](/docs/scripting/client-scripting-api-reference/types/sgameobject.md) GameObject {get; }

Example

**Lua**

```lua
theGameObject = Space.Host.ExecutingObject.VirtualCamera.GameObject

```
