SVirtualCamera
ClientComposants
Dans cette classeEnabled
Membres 10
| Propriété | Enabled | Is this virtual camera enabled? |
| Propriété | FieldOfView | Field of view of this virtual camera. |
| Propriété | Dutch | Dutch of view of this virtual camera. |
| Propriété | NearClip | The near clip plane of this virtual camera. |
| Propriété | FarClip | The far clip plane of this virtual camera. |
| Propriété | OrthographicSize | The orthographic size of this virtual camera. |
| Propriété | Priority | The priority of this virtual camera. |
| Propriété | Follow | The object that this virtual camera should be following. |
| Propriété | LookAt | The object that this virtual camera should be looking at. |
| Propriété | GameObject | – |
Propriétés
Enabled
bool Enabled {get; set; }
Is this virtual camera enabled?
Exemple
Lua
Space.Host.ExecutingObject.VirtualCamera.Enabled = true
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.
Exemple
Lua
Space.Host.ExecutingObject.VirtualCamera.FieldOfView = 50.0
Dutch
float Dutch {get; set; }
Dutch of view of this virtual camera. In degrees.
Exemple
Lua
Space.Host.ExecutingObject.VirtualCamera.Dutch = 50.0
NearClip
float NearClip {get; set; }
The near clip plane of this virtual camera.
Exemple
Lua
Space.Host.ExecutingObject.VirtualCamera.NearClip = 50.0
FarClip
float FarClip {get; set; }
The far clip plane of this virtual camera.
Exemple
Lua
Space.Host.ExecutingObject.VirtualCamera.FarClip = 50.0
OrthographicSize
float OrthographicSize {get; set; }
The orthographic size of this virtual camera.
Exemple
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.
Exemple
Lua
Space.Host.ExecutingObject.VirtualCamera.Priority = 500
Follow
The object that this virtual camera should be following.
Exemple
Lua
AReferenceToGameObject = Space.Host.GetReference("Reference Name")
Space.Host.ExecutingObject.VirtualCamera.Follow = AReferenceToGameObject
LookAt
The object that this virtual camera should be looking at.
Exemple
Lua
AReferenceToGameObject = Space.Host.GetReference("Reference Name")
Space.Host.ExecutingObject.VirtualCamera.LookAt = AReferenceToGameObject
GameObjectLecture seule
Exemple
Lua
theGameObject = Space.Host.ExecutingObject.VirtualCamera.GameObject



