TwinfinityCameraStateSnapshot
Implemented by
Index
Properties
readonlycamera
Camera to which the state snapshot is linked.
readonlyisChanged
true
if camera has changed state since last time refresh was called, otherwise false
readonlylastChangeTimestamp
Timestamp when last camera change check was true.
readonlylastCheckTimestamp
Timestamp when camera state was last checked.
Methods
checkIsChanged
true
if camera has changed state since last time refresh or checkIsChanged was called, otherwisefalse
Parameters
optionalcheckOnlyDimensions: boolean
A flag indicating if to check only if the camera dimensions changed, if set to true only width/height of the camera is checked, otherwise translation and rotation of the camera is checked too
Returns boolean
refresh
Resets the camera state so isChanged is set to
false
(ie we refresh the snapshot so it is equal to the state of camera).Returns boolean
true
if isChanged wastrue
when call was made. Otherwisefalse
Is the snapshot of a camera state. The snapshot can be used to check if the camera state (rotation, position etc.) has changed since the snapshot was created IsChanged. The snapshot can also be updated refresh so it matches the Camera from which it was created.