Skip to main content
Version: Phaser v4.2.1

Types.GameObjects.CustomContext

CustomContextCallback​

<static> CustomContextCallback​

Type: function

Member of: Phaser.Types.GameObjects.CustomContext

Source: src/gameobjects/customcontext/typedefs/CustomContextCallback.js#L1
Since: 4.2.0


CustomContextConfig​

<static> CustomContextConfig​

nametypeoptionaldescription
customContextCallbackPhaser.Types.GameObjects.CustomContext.CustomContextCallbackYesA function to be called before the custom DrawingContext is activated. If undefined, no callback will be called.

Type: object

Member of: Phaser.Types.GameObjects.CustomContext

Source: src/gameobjects/customcontext/typedefs/CustomContextConfig.js#L1
Since: 4.2.0