(Added and defined all members (13) in SCamera) |
|||
Line 1: | Line 1: | ||
=Members= | =Members= | ||
− | {{ScriptFunction|void|TakePhoto|()|Triggers the Photo window in the UI, with the output of this camera. Perfect for photo booths.|5=< | + | {{ScriptFunction|void|TakePhoto|()|Triggers the Photo window in the UI, with the output of this camera. Perfect for photo booths.|5=local Object = Space.Scene.Find("Camera")<br> |
+ | Object.Camera.TakePhoto() | ||
+ | }} | ||
− | {{ScriptFunction|SResource|TakeSnapshot|()|Captures a texture from the camera, and saves it in a SResource|5=< | + | {{ScriptFunction|SResource|TakeSnapshot|()|Captures a texture from the camera, and saves it in a SResource|5=local Object = Space.Scene.Find("Camera")<br> |
+ | Object.Camera.TakeSnapshot().Name; | ||
+ | }} | ||
Line 9: | Line 13: | ||
=Properties= | =Properties= | ||
− | {{ScriptFunction|bool|Enabled|{ get; set; }|Is this camera enabled?|5= < | + | {{ScriptFunction|bool|Enabled|{ get; set; }|Is this camera enabled?|5= |
+ | local Object = Space.Scene.Find("Camera")<br> | ||
+ | Space.Log(Object.Camera.Enabled);<br> | ||
+ | ''--print true.'' | ||
+ | }} | ||
− | {{ScriptFunction|float|FarClip|{ get; set; }|How far is an object from the camera plane before it is not rendered?|5= < | + | {{ScriptFunction|float|FarClip|{ get; set; }|How far is an object from the camera plane before it is not rendered?|5= |
+ | local Object = Space.Scene.Find("Camera")<br> | ||
+ | Space.Log(Object.Camera.FarClip) | ||
+ | }} | ||
− | {{ScriptFunction|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.|5= < | + | {{ScriptFunction|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.|5= local Object = Space.Scene.Find("Camera")<br> |
+ | Space.Log(Object.Camera.FieldOfView) | ||
+ | }} | ||
− | {{ScriptFunction|bool|HDR|{ get; set; }|Can this camera write HDR values? (i.e. values brighter than 1.0)|5= < | + | {{ScriptFunction|bool|HDR|{ get; set; }|Can this camera write HDR values? (i.e. values brighter than 1.0)|5= local Object = Space.Scene.Find("Camera")<br> |
+ | Space.Log(Object.Camera.HDR)<br> | ||
+ | ''--print true.'' | ||
+ | }} | ||
− | {{ScriptFunction|float|NearClip|{ get; set; }|How close can an object be to the camera plane before it is not rendered?|5= < | + | {{ScriptFunction|float|NearClip|{ get; set; }|How close can an object be to the camera plane before it is not rendered?|5= local Object = Space.Scene.Find("Camera")<br> |
+ | Space.Log(Object.Camera.NearClip)}} | ||
− | {{ScriptFunction|bool|Orthographic|{ get; set; }|Does this camera render without perspective?|5= < | + | {{ScriptFunction|bool|Orthographic|{ get; set; }|Does this camera render without perspective?|5= |
+ | local Object = Space.Scene.Find("Camera")<br> | ||
+ | Space.Log(Object.Camera.Orthographic) | ||
+ | }} | ||
− | {{ScriptFunction|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|5= < | + | {{ScriptFunction|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|5= local Object = Space.Scene.Find("Camera")<br> |
+ | Space.Log(Object.Camera.OrthographicSize) | ||
+ | }} | ||
− | {{ScriptFunction|int|PixelHeight|{ get; }|The height of this Camera's texture in pixels|5= < | + | {{ScriptFunction|int|PixelHeight|{ get; }|The height of this Camera's texture in pixels|5= |
+ | local Object = Space.Scene.Find("Camera")<br> | ||
+ | Space.Log(Object.Camera.PixelHeight) | ||
+ | }} | ||
+ | {{ScriptFunction|int|PixelWidth|{ get; }|The width of this Camera's texture, in pixels|5= local Object = Space.Scene.Find("Camera")<br> | ||
+ | Space.Log(Object.Camera.PixelWidth) | ||
+ | }} | ||
+ | {{ScriptFunction|bool|UseOcclusionCulling|{ get; set;}|Is Occlusion Culling enabled on this camera?|5= | ||
+ | local Object = Space.Scene.Find("Camera")<br> | ||
+ | Space.Log(Object.Camera.UseOcclusionCulling)<br> | ||
+ | ''--print true.'' | ||
+ | }} | ||
− | + | {{ScriptFunction|SVector|Velocity|{ get; }|World space speed of this camera, typically used for motion blur.|5= | |
− | + | local Object = Space.Scene.Find("Camera")<br> | |
− | + | local VectorData = Object.Camera.Velocity;<br> | |
− | + | Space.Log(VectorData) | |
− | {{ScriptFunction|SVector|Velocity|{ get; }|World space speed of this camera, typically used for motion blur.|5= < | + | }} |
Triggers the Photo window in the UI, with the output of this camera. Perfect for photo booths.
Captures a texture from the camera, and saves it in a SResource
Is this camera enabled?
Space.Log(Object.Camera.Enabled);
How far is an object from the camera plane before it is not rendered?
The field of view of the camera, in typical scenarios, Sinespace uses a value of 52; however Unity will default to 60.
Can this camera write HDR values? (i.e. values brighter than 1.0)
Space.Log(Object.Camera.HDR)
How close can an object be to the camera plane before it is not rendered?
Does this camera render without perspective?
The width of the camera when in Orthographic mode. Height will be adjusted based on aspect ratio of the Render Texture
The height of this Camera's texture in pixels
The width of this Camera's texture, in pixels
Is Occlusion Culling enabled on this camera?
Space.Log(Object.Camera.UseOcclusionCulling)
World space speed of this camera, typically used for motion blur.
local VectorData = Object.Camera.Velocity;
|