The TeleportInputHandler provides interfaces used to control aim related to teleports and related behaviors. There are derived implementations of this for Touch controllers, gamepad and HMD based aiming mechanics. Supporting any of these, or other future controllers, is possible by implementing and enabling a different derived type of TeleportInputHandler.
More...
|
abstract LocomotionTeleport.TeleportIntentions | GetIntention () |
| One of the core functions of the TeleportInputHandler is to notify the LocomotionTeleport of the current intentions of the user with respect to aiming, teleporting, and abandoning a pending teleport. Derivations of this class will check buttons or whatever inputs they require to return values indicating what the user is trying to do. More...
|
|
abstract void | GetAimData (out Ray aimRay) |
| Returns the aim ray for pointing at targets, which is generally based on a touch controller or HMD pose. More...
|
|
|
| TeleportInputHandler () |
|
override void | AddEventHandlers () |
| Derived classes that need to use event handlers need to override this method and call the base class to ensure all event handlers are added as intended. More...
|
|
override void | RemoveEventHandlers () |
| Derived classes that need to use event handlers need to override this method and call the base class to ensure all event handlers are removed as intended. More...
|
|
virtual void | OnEnable () |
| OnEnable is virtual so that derived classes can set up references to objects before AddEventHandlers is called, as is required by TeleportSupport derivations. More...
|
|
virtual void | OnDisable () |
|
The TeleportInputHandler provides interfaces used to control aim related to teleports and related behaviors. There are derived implementations of this for Touch controllers, gamepad and HMD based aiming mechanics. Supporting any of these, or other future controllers, is possible by implementing and enabling a different derived type of TeleportInputHandler.
◆ TeleportInputHandler()
TeleportInputHandler.TeleportInputHandler |
( |
| ) |
|
|
protected |
◆ AddEventHandlers()
override void TeleportInputHandler.AddEventHandlers |
( |
| ) |
|
|
protectedvirtual |
Derived classes that need to use event handlers need to override this method and call the base class to ensure all event handlers are added as intended.
Reimplemented from TeleportSupport.
◆ GetAimData()
abstract void TeleportInputHandler.GetAimData |
( |
out Ray |
aimRay | ) |
|
|
pure virtual |
◆ GetIntention()
◆ RemoveEventHandlers()
override void TeleportInputHandler.RemoveEventHandlers |
( |
| ) |
|
|
protectedvirtual |
Derived classes that need to use event handlers need to override this method and call the base class to ensure all event handlers are removed as intended.
Reimplemented from TeleportSupport.
The documentation for this class was generated from the following file: