All pages
Powered by GitBook
1 of 1

Loading...

SVirtualCamera

Index

Properties Index

Property Name

Properties

Enabled

bool Enabled get set

Is this virtual camera enabled?

FieldOfView

float FieldOfView get set

Field of view of this virtual camera.

Dutch

float Dutch get set

Dutch of view of this virtual camera. In degrees.

NearClip

float NearClip get set

The near clip plane of this virtual camera.

FarClip

float FarClip get set

The far clip plane of this virtual camera.

OrthographicSize

float OrthographicSize get set

The orthographic size of this virtual camera.

Priority

int Priority get set

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

Follow

Follow get set

The object that this virtual camera should be following.

LookAt

LookAt get set

The object that this virtual camera should be looking at.

GameObject

GameObject get

Property Description

bool Enabled get set

float FieldOfView get set

float Dutch get set

float NearClip get set

float FarClip get set

float OrthographicSize get set

int Priority get set

SGameObject Follow get set

SGameObject LookAt get set

SGameObject GameObject get

SGameObject
SGameObject
SGameObject
Space.Host.ExecutingObject.VirtualCamera.Enabled = true
--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)
Space.Host.ExecutingObject.VirtualCamera.FieldOfView = 50.0
Space.Host.ExecutingObject.VirtualCamera.Dutch = 50.0
Space.Host.ExecutingObject.VirtualCamera.NearClip = 50.0
Space.Host.ExecutingObject.VirtualCamera.FarClip = 50.0
Space.Host.ExecutingObject.VirtualCamera.OrthographicSize = 10.0
Space.Host.ExecutingObject.VirtualCamera.Priority = 500
AReferenceToGameObject = Space.Host.GetReference("Reference Name")
Space.Host.ExecutingObject.VirtualCamera.Follow = AReferenceToGameObject
AReferenceToGameObject = Space.Host.GetReference("Reference Name")
Space.Host.ExecutingObject.VirtualCamera.LookAt = AReferenceToGameObject
theGameObject = Space.Host.ExecutingObject.VirtualCamera.GameObject