camera view information||doc135640

September 20, 2022

Format

 Blockman:getCameraInfo(viewIndex)
  • The class to which the function belongs:Blockman

Description

Get the camera's perspective view information according to the perspective type.


Parameters

Variable name type Description
viewIndex int type of view

Value Returned

type Description
table Perspective view information


Code Samples

local cameraInfo = Blockman.Instance():getCameraInfo(3)
local cameraCfg = cameraInfo.viewCfg
Lib.pv(cameraCfg)