Inherits C2M2.Interaction.RaycastEventSignaler.
◆ OnAwake()
override void C2M2.Interaction.MouseEventSignaler.OnAwake |
( |
| ) |
|
|
protectedvirtual |
◆ OnStart()
override void C2M2.Interaction.MouseEventSignaler.OnStart |
( |
| ) |
|
|
protectedvirtual |
◆ PressCondition()
override bool C2M2.Interaction.MouseEventSignaler.PressCondition |
( |
| ) |
|
|
protectedvirtual |
Require a second condition before raycast events are triggered
In Oculus, this is the trigger button. The user must hold "One" to begin raycasting, and then the trigger once they want to see events triggered. This way, raycasts can be visualized in VR before events are triggered with the raycast. With mouse raycasting, this simply returns "true", since we don't need to visualize raycasts before triggering events. We can just skip right to triggering events
Implements C2M2.Interaction.RaycastEventSignaler.
◆ RaycastingMethod()
override bool C2M2.Interaction.MouseEventSignaler.RaycastingMethod |
( |
out RaycastHit |
hit, |
|
|
float |
maxDistance, |
|
|
LayerMask |
layerMask |
|
) |
| |
|
protectedvirtual |
◆ RaycastRequested()
override bool C2M2.Interaction.MouseEventSignaler.RaycastRequested |
( |
| ) |
|
|
protectedvirtual |
Rrequire some condition before raycast requests are made.
You can require a button be pressed before raycasting. In Oculus, this returns true if button "One" is pressed down. With mouse raycasting, this returns true if the mouse button is pressed down
Implements C2M2.Interaction.RaycastEventSignaler.
◆ grabber
◆ grabKeys
KeyCode [] C2M2.Interaction.MouseEventSignaler.grabKeys = new KeyCode[] { KeyCode.G } |
◆ grabTransform
Transform C2M2.Interaction.MouseEventSignaler.grabTransform |
|
private |
◆ grabVolume
SphereCollider C2M2.Interaction.MouseEventSignaler.grabVolume |
|
private |
The documentation for this class was generated from the following file: