Phaser API Documentation

  Version: 
setViewHeight([value])

Description:

Sets the height of this Plane to match the given value, in pixels.

This adjusts the Plane.viewPosition.z value to achieve this.

If no value parameter is given, it will set the view height to match that of the current texture frame the Plane is using.

Parameters:

name type arguments description
value number <optional>

The height, in pixels, to set this Plane view height to.

Since: 3.60.0