Skip to content

useCamera 0.1.0 view source

function useCamera(
  scope: Fusion.Scope
): Fusion.StateObject<Camera>

Returns a state object with the current camera. Updates when the current camera changes.


Parameters

scope : Fusion.Scope

The scope to store cleanup tasks.


Returns -> Fusion.StateObject<Camera>

A state object with the current camera.


Example Usage

-- TODO: write example