Camera.setData() method

Set the scene camera use data.

Signature:

setData(data: any, animation?: boolean): void;

Parameters

ParameterDescription
datathe internal stats of current camera.
animationIf true, there will be a animation when the function is triggered.

Returns:

void