Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
MouseRayEventsHandler Class Reference

This class emulates unity mouse events for objects that can only be interacted with ray casts More...

Inheritance diagram for MouseRayEventsHandler:
MouseEventsHandlerBase Expansions.Missions.Editor.SpriteButton

Public Member Functions

void OnRayHit (RaycastHit hit)
 Send a raycast hit to this object, this is the entry point of interaction with this class More...
 

Public Attributes

bool forwardMouseEvents = true
 Should this mouse event forward the events to a IMouseEvents parent? More...
 

Protected Member Functions

virtual void LateUpdate ()
 
override void Start ()
 
- Protected Member Functions inherited from MouseEventsHandlerBase
virtual void OnMouseDown ()
 
virtual void OnMouseDrag ()
 
virtual void OnMouseEnter ()
 
virtual void OnMouseExit ()
 
virtual void OnMouseUp ()
 

Properties

bool isRayOver [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from MouseEventsHandlerBase
static IMouseEvents FindHandleUpwards (GameObject go)
 

Detailed Description

This class emulates unity mouse events for objects that can only be interacted with ray casts

Member Function Documentation

virtual void MouseRayEventsHandler.LateUpdate ( )
inlineprotectedvirtual
void MouseRayEventsHandler.OnRayHit ( RaycastHit  hit)
inline

Send a raycast hit to this object, this is the entry point of interaction with this class

Parameters
hit
override void MouseRayEventsHandler.Start ( )
inlineprotectedvirtual

Reimplemented from MouseEventsHandlerBase.

Member Data Documentation

bool MouseRayEventsHandler.forwardMouseEvents = true

Should this mouse event forward the events to a IMouseEvents parent?

Property Documentation

bool MouseRayEventsHandler.isRayOver
getprotected

The documentation for this class was generated from the following file: