MagicWand Class |
Namespace: RavingBots.MagicGestures.Controller
public class MagicWand : MonoBehaviour
The MagicWand type exposes the following members.
| Name | Description | |
|---|---|---|
| CameraRotationReference |
An averaged camera orientantion during the action.
| |
| CameraTransformOnActionStart |
The state of the camera transform when the action starts.
| |
| CameraTransformOnActionStop |
The state of the camera transform when the action ends.
| |
| GestureTracker |
The gesture tracker of this wand.
| |
| LaserPointer |
The laser pointer component of this wand.
| |
| MenuMode | if the menu is open.
| |
| SpellCaster |
The spell effect manager of this wand.
| |
| TrackedController |
The motion controller component of this wand.
|
| Name | Description | |
|---|---|---|
| ActionStart |
Called when the user presses the trigger.
| |
| ActionStop |
Called when the user releases the trigger.
| |
| Awake |
Get and configure the child components.
| |
| MenuButtonClicked |
Called when the user presses the menu button on the controller.
| |
| OnApplicationQuit |
Short-circuit the destruction logic on application quit.
| |
| OnDisable |
Stop the current action.
| |
| OnMagic |
Play the casting sound.
| |
| SetMenuMode |
Update the menu state.
| |
| Start |
Register this wand with the WandManager.
| |
| TriggerClicked |
Called when the user presses the trigger.
| |
| TriggerUnclicked |
Called when the user releases the trigger.
|
| Name | Description | |
|---|---|---|
| _audioSource |
The audio source attached to this wand.
| |
| _menuMode | if the menu is open.
| |
| _quitting | if the application is exiting.
| |
| _renderers |
All renderers this wand consists of.
|