Camera Profiler
The Camera Profiler is a singleton responsible for handling what camera is active, what cameras are not active and the primary entrypoint for activating different camera objects.
Properties
Camera
Camera Profiler.Camera <CameraObject>
CameraActivated
Camera Profiler.CameraActivated <RBXScriptSignal (opens in a new tab)>
CameraDeactivated
Camera Profiler.CameraDeactivated <RBXScriptSignal (opens in a new tab)>
Methods
GetActiveCamera
Camera Profiler:GetActiveCamera() -> string (opens in a new tab)
Get the active camera instance, this'll return a string that represents a camera object.
local activeCamera = CameraProfile:GetActiveCamera()
SetActiveCamera
Camera Profiler:SetActiveCamera(
cameraName
string (opens in a new tab) ) -> string (opens in a new tab)
Set the active camera instance, this'll invoke a few lifecycle methods as well as swap out the current camera for the requested camera if found.
CameraProfile:SetActiveCamera("Example")