wiki.sine.space | sinespace

Difference between revisions of "Scripting/SCamera"

From wiki.sine.space
Jump to: navigation, search
(Added and defined all members (13) in SCamera)
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/scamera")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Members=
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/scamera
 
+
{{ScriptFunction|void|TakePhoto|()|Triggers the Photo window in the UI, with the output of this camera. Perfect for photo booths.|5=<pre></pre>}}
+
 
+
{{ScriptFunction|SResource|TakeSnapshot|()|Captures a texture from the camera, and saves it in a SResource|5=<pre></pre>}}
+
 
+
 
+
 
+
=Properties=
+
 
+
{{ScriptFunction|bool|Enabled|{ get; set; }|Is this camera enabled?|5= <pre></pre>}}
+
 
+
{{ScriptFunction|float|FarClip|{ get; set; }|How far is an object from the camera plane before it is not rendered?|5= <pre></pre>}}
+
 
+
{{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= <pre></pre>}}
+
 
+
{{ScriptFunction|bool|HDR|{ get; set; }|Can this camera write HDR values? (i.e. values brighter than 1.0)|5= <pre></pre>}}
+
 
+
{{ScriptFunction|float|NearClip|{ get; set; }|How close can an object be to the camera plane before it is not rendered?|5= <pre></pre>}}
+
 
+
{{ScriptFunction|bool|Orthographic|{ get; set; }|Does this camera render without perspective?|5= <pre></pre>}}
+
 
+
{{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= <pre></pre>}}
+
 
+
{{ScriptFunction|int|PixelHeight|{ get;  }|The height of this Camera's texture in pixels|5= <pre></pre>}}
+
 
+
 
+
 
+
{{ScriptFunction|int|PixelWidth|{ get; }|The width of this Camera's texture, in pixels|5= <pre></pre>}}
+
 
+
{{ScriptFunction|bool|UseOcclusionCulling|{ get; set;}|Is Occlusion Culling enabled on this camera?|5= <pre></pre>}}
+
 
+
{{ScriptFunction|SVector|Velocity|{ get; }|World space speed of this camera, typically used for motion blur.|5= <pre></pre>}}
+
 
+
 
+
 
+
 
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 05:27, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/scamera