Interface

Comp

:

group Components

subgroup Component Types

require

?: Tag[]

What other comps this comp depends on.

add

?: () => void

Event that runs when host game obj is added to scene.

fixedUpdate

?: () => void

Event that runs at a fixed frame rate.

update

?: () => void

Event that runs every frame.

draw

?: () => void

Event that runs every frame after update.

destroy

?: () => void

Event that runs when obj is removed from scene.

inspect

?: () => string | null

Debug info for inspect mode.

drawInspect

?: () => void

Draw debug info in inspect mode.

since v3000.0

serialize

?: () => any

Serializes the component.

since v4000.0

kaplay logo

Components