Collider Raycaster Component
Overview
This component allows Mouse Party to have multi-mouse interaction with Unity's Collider and Collider2D components causing standard MonoBehaviour mouse events to trigger such as MonoBehaviour.OnMouseEnter(), MonoBehaviour.OnMouseExit(), MonoBehaviour.OnMouseDown() etc.
Because the standard MonoBehaviour mouse events don't contain any information about which mouse caused the event, this component also supports Mouse Party events which do contain this information. To use these simply implement the events from the interfaces:
IMousePartyEnterHandlerIMousePartyExitHandlerIMousePartyOverHandlerIMousePartyDownHandlerIMousePartyUpHandler
Properties

| Property | Type | Range | Default | Description |
|---|---|---|---|---|
| Camera | Camera | null | The camera to use for raycasting the cursors. If this is null, Camera.main will be used. | |
| Layer3D | LayerMask | The layers to include in the raycasting for Collider objects. | ||
| Layer2D | LayerMask | The layers to include in the raycasting for Collider2D objects. | ||
| Max Raycast Distance | Float | 100.0 | The maximum distance to raycast for Collider objects. | |
| Emit Standard Events | Bool | True | Calls the MonoBehaviour methods such as OnMouseDown etc. | |
| Emit Mouse Party Events | Bool | True | Calls the implemented Mouse Party events eg IMousePartyDownHandler. |