Phaser API Documentation

  Version: 
<static> GetNewValue(source, key, defaultValue)

Description:

Internal function used by the Tween Builder to create a function that will return the given value from the source.

Parameters:

name type description
source any

The source object to get the value from.

key string

The property to get from the source.

defaultValue any

A default value to return should the source not have the property set.

Returns:
Description:

A function which when called will return the property value from the source.

Type:
  • function
Since: 3.0.0