wiki.sine.space | sinespace

Difference between revisions of "Scripting/SCameraManager"

From wiki.sine.space
Jump to: navigation, search
(Created page with "The SCameraManager class allows you to take and manipulate the users camera. Combine with Scripting/SCamera to create 2D side-scrolling regions! ==Members== {{ScriptFunct...")
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/scene/scameramanager")
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The SCameraManager class allows you to take and manipulate the users camera. Combine with [[Scripting/SCamera]] to create 2D side-scrolling regions!
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/scene/scameramanager
 
+
==Members==
+
{{ScriptFunction|bool|IsLocked|{ get; }|Returns true if the Camera is locked and can be manipulated by this script.}}
+
{{ScriptFunction|void|ReleaseCamera|();|Relinquishes control of the Camera back to Space}}
+
{{ScriptFunction|void|LockCamera|(SGameObject owner);|Takes control of the Camera as long as 'owner' exists in the scene, or until ReleaseCamera() has been called. Using the Host runtime as the owner is often a good practice.}}
+
{{ScriptFunction|void|SetCameraPositionOrientation|(SVector position, SQuaternion orientation);|Forces the camera to be at position facing orientation for the frame. Needs to be called every frame.}}
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 07:22, 19 September 2022

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