DefaultCamera
Hack to maintain default camera control by binding before and after the camera update cycle This allows other cameras to build off of the "default" camera while maintaining the same Roblox control scheme.
This camera is automatically setup by the CameraStackService.
Properties
CameraState
This item is read only and cannot be modified. Read OnlyDefaultCamera.CameraState:
CameraState
The current state.
CameraState
This item is read only and cannot be modified. Read OnlyDefaultCamera.CameraState:
CameraState
The current state.
CameraState
This item is read only and cannot be modified. Read OnlyDefaultCamera.CameraState:
CameraState
The current state.
Functions
new
Constructs a new DefaultCamera
OverrideGlobalFieldOfView
DefaultCamera:
OverrideGlobalFieldOfView
(
fieldOfView:
number
) →
(
)
Overrides the global field of view in the cached camera state
BindToRenderStep
DefaultCamera:
BindToRenderStep
(
) →
(
)
Binds the camera to RunService RenderStepped event.
tip
Be sure to call UnbindFromRenderStep when using this.
UnbindFromRenderStep
DefaultCamera:
UnbindFromRenderStep
(
) →
(
)
Unbinds the camera from the RunService
Destroy
DefaultCamera:
Destroy
(
) →
(
)
Cleans up the binding