Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Size

getNewHeight(value, [checkParent])

Description:

Takes a new height and passes it through the min/max clamp and then checks it doesn't exceed the parent height.

Parameters:

name type arguments Default description
value number

The value to clamp and check.

checkParent boolean <optional> true

Check the given value against the parent, if set.

Returns:
Description:

The modified height value.

Type:
  • number
Examples:
Since: 3.16.0
Source: src/structs/Size.js (Line 427)