import Clickable from '@mobilizing/library/js/Mobilizing/renderer/3D/three/ui/Clickable.js'
Setup for this clickable instance
|From class Component|
Adds a component to this chained component array
Returns the array of attached children components
Deactivate the component
Activate the component A call to this method calls the setup method if it has not been run yet
Run code after the update of all components is run This empty method is usually overriden to perform post-update actions for the component It is called periodically by an internal Mobilizing mechanism
preLoad the component This empty method is usually overriden to perform preLoad actions for the component.
Run code before the update of all components is run This empty method is usually overriden to perform pre-update actions for the component It is called once per component by an internal Mobilizing mechanism
prepare the component This empty method is usually overriden to perform preparation actions for the component, from external process as a server.
Set's up the component This empty method is usually overriden to perform setup actions for the component This is where all the initialization (such as adding event listeners)should be done It is called automatically by an internal Mobilizing mechanism and should thus not be called directly
Update the component This empty method is usually overriden to perform update actions for the component It is called periodically by an internal Mobilizing mechanism
Makes a Mesh clickable
Parameters object, given by the constructor.
a Pointer input object to use for the interaction. If none provided, a Pointer is created internally by this class, but it needs a canvas reference (i.e the canvas uses by the renderer)
the camera used in the scene to compute the pick on the mesh
the target mesh to make clickable
the canvas to use for the Pointer input to work (i.e the canvas uses by the renderer)
set the hover (enter) behavious continuous (i.e not only once on the mesh entering, but at each pointer's move)
defines if the events triggered by this clickable should be conituous (every frame) or not (on event only)