Breakroom is now Sinewave Campus. Book a meeting

SVirtualCamera

العميلالمكونات
في هذا الصنفEnabled
  1. الخصائص
  2. Enabled
  3. FieldOfView
  4. Dutch
  5. NearClip
  6. FarClip
  7. OrthographicSize
  8. Priority
  9. Follow
  10. LookAt
  11. GameObject
الأعضاء 10
خاصيةEnabledIs this virtual camera enabled?
خاصيةFieldOfViewField of view of this virtual camera.
خاصيةDutchDutch of view of this virtual camera.
خاصيةNearClipThe near clip plane of this virtual camera.
خاصيةFarClipThe far clip plane of this virtual camera.
خاصيةOrthographicSizeThe orthographic size of this virtual camera.
خاصيةPriorityThe priority of this virtual camera.
خاصيةFollowThe object that this virtual camera should be following.
خاصيةLookAtThe object that this virtual camera should be looking at.
خاصيةGameObject–

الخصائص​

Enabled​

bool Enabled {get; set; }

Is this virtual camera enabled?

مثال

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.

مثال

Lua
Space.Host.ExecutingObject.VirtualCamera.FieldOfView = 50.0

Dutch​

float Dutch {get; set; }

Dutch of view of this virtual camera. In degrees.

مثال

Lua
Space.Host.ExecutingObject.VirtualCamera.Dutch = 50.0

NearClip​

float NearClip {get; set; }

The near clip plane of this virtual camera.

مثال

Lua
Space.Host.ExecutingObject.VirtualCamera.NearClip = 50.0

FarClip​

float FarClip {get; set; }

The far clip plane of this virtual camera.

مثال

Lua
Space.Host.ExecutingObject.VirtualCamera.FarClip = 50.0

OrthographicSize​

float OrthographicSize {get; set; }

The orthographic size of this virtual camera.

مثال

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.

مثال

Lua
Space.Host.ExecutingObject.VirtualCamera.Priority = 500

Follow​

SGameObject Follow {get; set; }

The object that this virtual camera should be following.

مثال

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

LookAt​

SGameObject LookAt {get; set; }

The object that this virtual camera should be looking at.

مثال

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

GameObjectللقراءة فقط​

SGameObject GameObject {get; }

مثال

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