Extends: ESCCameraBaseCommand < ESCBaseCommand < Resource
camera_shift_block x y [time] [type]
Shifts the camera by the given horizontal and vertical amounts relative to the current location. Blocks until the command completes.
Make sure the destination coordinates are reachable if camera limits have been configured.
x: Shift by x pixels along the x-axis
y: Shift by y pixels along the y-axis
time: Number of seconds the transition should take, with a value of
0meaning the zoom should happen instantly (default:
type: Transition type to use (default:
Supported transitions include the names of the values used in the “TransitionType” enum of the “Tween” type (without the “TRANS_” prefix).
For more details see: https://docs.escoria-framework.org/camera
const SUPPORTED_TRANSITIONS: Array = ["LINEAR","SINE","QUINT","QUART","QUAD","EXPO","ELASTIC","CUBIC","CIRC","BOUNCE","BACK"]
The list of supported transitions as per the link mentioned above
func configure() -> ESCCommandArgumentDescriptor
Return the descriptor of the arguments of this command
func run(command_params: Array) -> var
Run the command
func validate(arguments: Array)
Validate whether the given arguments match the command descriptor
Function called when the command is interrupted.