void TakePhoto ()
Triggers the Photo window in the UI, with the output of this camera. Perfect for photo booths.
TakeSnapshot ()
Captures a texture from the camera, and saves it in a SResource
bool HDR get set
Can this camera write HDR values? (i.e. values brighter than 1.0)
int PixelWidth get
The width of this Camera's texture, in pixels
int PixelHeight get
The height of this Camera's texture in pixels
Velocity get
World space speed of this camera, typically used for motion blur.
bool UseOcclusionCulling get set
Is Occlusion Culling enabled on this camera?
bool Enabled get set
Is this camera enabled?
float FieldOfView get set
The field of view of the camera, in typical scenarios, Sinespace uses a value of 52; however Unity will default to 60.
bool Orthographic get set
Does this camera render without perspective?
float OrthographicSize get set
The width of the camera when in Orthographic mode. Height will be adjusted based on aspect ratio of the Render Texture
float NearClip get set
How close can an object be to the camera plane before it is not rendered?
float FarClip get set
How far is an object from the camera plane before it is not rendered?
GameObject get
Returns a reference to the GameObject of this component.
float get set
void TakePhoto ()
SResource TakeSnapshot ()
bool HDR get set
int PixelWidth get
int PixelHeight get
SVector Velocity get
bool UseOcclusionCulling get set
bool Enabled get set
float FieldOfView get set
bool Orthographic get set
float OrthographicSize get set
float get set
Space.Host.ExecutingObject.Camera.TakePhoto()Space.Host.ExecutingObject.Camera.TakeSnapshot()Space.Host.ExecutingObject.Camera.HDR = truecameraWidthPixels = Space.Host.ExecutingObject.Camera.PixelWidthcameraHeightPixels = Space.Host.ExecutingObject.Camera.PixelHeightcameraVelocity = Space.Host.ExecutingObject.Camera.VelocitySpace.Host.ExecutingObject.Camera.UseOcclusionCulling = trueSpace.Host.ExecutingObject.Camera.Enabled = true--clicking this object will Enable/Disable it's Camera component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.Camera
OnClick = function()
component.Enabled = not component.Enabled
end
thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)Space.Host.ExecutingObject.Camera.FieldOfView = 70Space.Host.ExecutingObject.Camera.Orthographic = trueSpace.Host.ExecutingObject.Camera.OrthographicSize = 5.0 Space.Host.ExecutingObject.Camera.NearClip = 2.0 Space.Host.ExecutingObject.Camera.FarClip = 6.0 theGameObject = Space.Host.ExecutingObject.Camera.GameObject