public VRSelection GetSelection() { // Find Selection Mgr VRSelectionManager selectionManager = this.GetComponent <VRSelectionManager>(); // Return selection return(selectionManager.GetSelection()); }
protected void Start() { m_SelectionMgr = this.GetComponent<VRSelectionManager>(); if (m_SelectionMgr == null) { MVRTools.Log(1, "[X] VRWand: impossible to retrieve VRSelectionManager."); } _FindWandGeometry(); SetRayLength(DefaultRayLength); }
protected void Start() { m_SelectionMgr = this.GetComponent <VRSelectionManager>(); if (m_SelectionMgr == null) { MVRTools.Log(1, "[X] VRWand: impossible to retrieve VRSelectionManager."); } _FindWandGeometry(); SetRayLength(DefaultRayLength); }
protected void Start() { // Make sure the base interaction is started and create interaction InitializeBaseInteraction(); CreateInteraction("VRRaySelection"); base.GetInteraction().AddTag("ContinuousSelection"); base.Activate(); m_SelectionMgr = this.GetComponent<VRSelectionManager>(); if (m_SelectionMgr == null) { MVRTools.Log(1, "[X] VRRaySelection: impossible to retrieve VRSelectionManager."); } m_Wand = this.GetComponent<VRWand>(); if (m_Wand == null) { MVRTools.Log(1, "[X] VRRaySelection: impossible to retrieve VRWand."); } }
private void Start() { // Make sure the base interaction is started and create interaction InitializeBaseInteraction(); CreateInteraction("VRRaySelection"); base.GetInteraction().AddTag("ContinuousSelection"); base.Activate(); m_SelectionMgr = this.GetComponent <VRSelectionManager>(); if (m_SelectionMgr == null) { MVRTools.Log(1, "[X] VRRaySelection: impossible to retrieve VRSelectionManager."); } m_Wand = this.GetComponent <VRWand>(); if (m_Wand == null) { MVRTools.Log(1, "[X] VRRaySelection: impossible to retrieve VRWand."); } }