Show raw api
{
"functions": [
{
"name": "new",
"desc": "Constructs a new DefaultCamera",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "DefaultCamera"
}
],
"function_type": "static",
"source": {
"line": 31,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
},
{
"name": "SetRobloxFieldOfView",
"desc": "Overrides the global field of view in the cached camera state",
"params": [
{
"name": "fieldOfView",
"desc": "",
"lua_type": "number"
}
],
"returns": [],
"function_type": "method",
"source": {
"line": 49,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
},
{
"name": "SetRobloxCameraState",
"desc": "Sets the Roblox camera state to look at things",
"params": [
{
"name": "cameraState",
"desc": "",
"lua_type": "CameraState"
}
],
"returns": [],
"function_type": "method",
"source": {
"line": 61,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
},
{
"name": "SetRobloxCFrame",
"desc": "Sets the CFrame of the Roblox Camera",
"params": [
{
"name": "cframe",
"desc": "",
"lua_type": "CFrame"
}
],
"returns": [],
"function_type": "method",
"source": {
"line": 73,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
},
{
"name": "GetRobloxCameraState",
"desc": "Gets the current Roblox camera state, free of any influence",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "CameraState"
}
],
"function_type": "method",
"source": {
"line": 82,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
},
{
"name": "SetLastSetCameraFrame",
"desc": "Sets the camera state different",
"params": [
{
"name": "cameraFrame",
"desc": "",
"lua_type": "CameraState | nil"
}
],
"returns": [],
"function_type": "method",
"source": {
"line": 91,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
},
{
"name": "BindToRenderStep",
"desc": "Binds the camera to RunService RenderStepped event.\n\n:::tip\nBe sure to call UnbindFromRenderStep when using this.\n:::",
"params": [],
"returns": [],
"function_type": "method",
"source": {
"line": 102,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
},
{
"name": "UnbindFromRenderStep",
"desc": "Unbinds the camera from the RunService",
"params": [],
"returns": [],
"function_type": "method",
"source": {
"line": 147,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
},
{
"name": "Destroy",
"desc": "Cleans up the binding",
"params": [],
"returns": [],
"function_type": "method",
"source": {
"line": 154,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
}
],
"properties": [
{
"name": "CameraState",
"desc": "The current state.",
"lua_type": "CameraState",
"readonly": true,
"source": {
"line": 164,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
}
],
"types": [],
"name": "DefaultCamera",
"desc": "Hack to maintain default camera control by binding before and after the camera update cycle\nThis allows other cameras to build off of the \"default\" camera while maintaining the same Roblox control scheme.\n\nThis camera is automatically setup by the [CameraStackService](/api/CameraStackService).",
"source": {
"line": 8,
"path": "src/camera/src/Client/Effects/DefaultCamera.lua"
}
}