Kaplay.OffScreen
Modules
Comp
Types
offscreenOptions
type offscreenOptions = { hide?: bool, pause?: bool, destroy?: bool, distance?: int,}Fields
hide option < bool >
pause option < bool >
destroy option < bool >
distance option < int >
Values
addOffScreenComponent
let addOffScreen: ( Kaplay.Context.t, ~options: offscreenOptions=?,) => Kaplay.Types.compReturn type
onExitScreen
onExitScreen(context, handler) register an event that runs when object goes out of view.
let onExitScreen: (T.t, unit => unit) => unitParameters
T.t
unit
unit
Return type
unit