VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
AVR_PlayerRig_ModuleWizard.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 using UnityEditor;
5 using System.Linq;
6 
7 using AVR.Core;
8 
9 namespace AVR.UEditor.Core {
10  public class AVR_PlayerRig_ModuleWizard : AVR_HookableWizard<AVR_PlayerRig_ModuleWizard> { }
11 
12  public class AVR_PlayerRigWizard_Hook_LeftController : AVR_WizardHook_SimpleFilteredToggle<AVR_PlayerRig_ModuleWizard, AVR_Controller>
13  {
14  protected override string moduleName => "Left Controller";
15  protected override string prefabPathSettingsToken => "/editor/defaultPrefabPaths/leftController";
16  protected override System.Func<AVR_Controller, bool> filter => (c) => c.controllerNode==UnityEngine.XR.XRNode.LeftHand;
17  }
18 
19  public class AVR_PlayerRigWizard_Hook_RightController : AVR_WizardHook_SimpleFilteredToggle<AVR_PlayerRig_ModuleWizard, AVR_Controller>
20  {
21  protected override string moduleName => "Right Controller";
22  protected override string prefabPathSettingsToken => "/editor/defaultPrefabPaths/rightController";
23  protected override System.Func<AVR_Controller, bool> filter => (c) => c.controllerNode == UnityEngine.XR.XRNode.RightHand;
24  }
25 }
Represents a VR controller. Provides functionality for spacial tracking and haptic feedback...
XRNode controllerNode
Which XRNode this object represents.