LogoLogo
Scripting DocsSupport
Scripting
Scripting
  • Sinespace Scripting Documentation
  • Client Scripting
    • Viewer
      • SDialogues
      • SInput
      • SShared
      • SUI
    • Network
      • SChat
      • SNetwork
      • SPhotos
      • SVideos
      • SWebService
    • Player
      • SEconomy
      • SGroup
      • SInventory
      • SProfile
      • SQuests
    • Region
      • SCameraManager
      • SGrid
      • SHost
      • SPersistence
      • SPhysics
      • SPostFX
      • SScene
      • SScript
      • SRenderSettings
    • Components
      • SAnimation
      • SAnimator
      • SAudioReactiveAnimation
      • SAudioReactiveBase
      • SAudioReactiveLight
      • SAudioReactiveMaterial
      • SAudioReactiveParticleSystem
      • SAudioReactiveTransform
      • SAudioSource
      • SBoxCollider
      • SBrowserSurface
      • SCamera
      • SCanvasGroup
      • SCapsuleCollider
      • SCharacterController
      • SClickable
      • SCloth
      • SCollider
      • SContentSizeFitter
      • SEmbeddedVideo
      • SEventCalendar
      • SFurniture
      • SGraphicRaycaster
      • SHingeJoint
      • SLight
      • SLineRenderer
      • SMeshRenderer
      • SModularVehicle
      • SNavMeshAgent
      • SNavMeshObstacle
      • SNetworking
      • SParticleSystem
      • SPlayableDirector
      • SPostProcessVolume
      • SRectTransform
      • SReflectionProbe
      • SRenderer
      • SRigidbody
      • SRoomFloor
      • SSceneBackgroundMusic
      • SScriptingData
      • SScriptingEvents
      • SScriptingResources
      • SScriptingRuntime
      • SSeat
      • SSkinnedMeshRenderer
      • SSphereCollider
      • SStateMachine
      • STerrain
      • STrailRenderer
      • SUIButton
      • SUICanvas
      • SUIDropdown
      • SUIImage
      • SUIInputField
      • SUILayout
      • SUIRawImage
      • SUIScrollbar
      • SUISlider
      • SUIText
      • SUIToggle
      • SUIToolTipHint
      • SVirtualCamera
      • SVoiceZone
    • Types
      • SAnimationState
      • SAnimatorStateInfo
      • SAvatar
      • SAvatarAppearance
      • SChatMessage
      • SColor
      • SCommandBuffer
      • SDateTime
      • SGameObject
      • SGenre
      • SGroupInfo
      • SInventoryItem
      • SJointLimits
      • SJointMotor
      • SJointSpring
      • SLandmark
      • SLayerMask
      • SMaterial
      • SMath
      • SMusicDirectory
      • SMusicStation
      • SMusicStationList
      • SNetworkMessageLua
      • SOutfit
      • SParticle
      • SPhysicsHit
      • SPublicRegion
      • SQuaternion
      • SRay
      • SRect
      • SResource
      • SScore
      • SScoreRank
      • SString
      • SSubRegion
      • STrackInfo
      • STuneIn
      • SUIRaycastResult
      • SUserRegions
      • SVector
      • SUserProfile
      • SSocialMedia
      • SWebResponse
  • Server Scripting
    • Library
      • SMath
    • Network
      • SShared
      • SWebservice
    • Region
      • SAvatar
      • SCell
      • SObject
      • SParcel
      • SParcelManager
      • SRegionScript
      • SScene
    • Storage
      • SDatabase
  • Guides
    • Persistence
    • Server Scripts
  • Sample Projects
    • Smart Lights
    • Trivia Box
  • Changelog
    • API Changelog
  • Support
    • Report An Issue
Powered by GitBook

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.

On this page
  • Index
  • Properties Index
  • Properties
  • Enabled
  • FieldOfView
  • Dutch
  • NearClip
  • FarClip
  • OrthographicSize
  • Priority
  • Follow
  • LookAt
  • GameObject

Was this helpful?

Export as PDF
  1. Client Scripting
  2. Components

SVirtualCamera

Index

Properties Index

Property Name

Properties

Enabled

bool Enabled get set

Is this virtual camera enabled?

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)

FieldOfView

float FieldOfView get set

Field of view of this virtual camera.

Space.Host.ExecutingObject.VirtualCamera.FieldOfView = 50.0

Dutch

float Dutch get set

Dutch of view of this virtual camera. In degrees.

Space.Host.ExecutingObject.VirtualCamera.Dutch = 50.0

NearClip

float NearClip get set

The near clip plane of this virtual camera.

Space.Host.ExecutingObject.VirtualCamera.NearClip = 50.0

FarClip

float FarClip get set

The far clip plane of this virtual camera.

Space.Host.ExecutingObject.VirtualCamera.FarClip = 50.0

OrthographicSize

float OrthographicSize get set

The orthographic size of this virtual camera.

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.

Space.Host.ExecutingObject.VirtualCamera.Priority = 500

Follow

The object that this virtual camera should be following.

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

LookAt

The object that this virtual camera should be looking at.

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

GameObject

Property Description

theGameObject = Space.Host.ExecutingObject.VirtualCamera.GameObject
PreviousSUIToolTipHintNextSVoiceZone

Last updated 2 years ago

Was this helpful?

bool get set

float get set

float get set

float get set

float get set

float get set

int get set

SGameObject get set

SGameObject get set

SGameObject get

Follow get set

LookAt get set

GameObject get

SGameObject
SGameObject
SGameObject
Enabled
FieldOfView
Dutch
NearClip
FarClip
OrthographicSize
Priority
Follow
LookAt
GameObject