Ejemplo n.º 1
0
    public VRSelection GetSelection()
    {
        // Find Selection Mgr
        VRSelectionManager selectionManager = this.GetComponent <VRSelectionManager>();

        // Return selection
        return(selectionManager.GetSelection());
    }
Ejemplo n.º 2
0
    protected void Start()
    {
        m_SelectionMgr = this.GetComponent<VRSelectionManager>();
        if (m_SelectionMgr == null)
        {
            MVRTools.Log(1, "[X] VRWand: impossible to retrieve VRSelectionManager.");
        }

        _FindWandGeometry();

        SetRayLength(DefaultRayLength);
    }
Ejemplo n.º 3
0
    protected void Start()
    {
        m_SelectionMgr = this.GetComponent <VRSelectionManager>();
        if (m_SelectionMgr == null)
        {
            MVRTools.Log(1, "[X] VRWand: impossible to retrieve VRSelectionManager.");
        }

        _FindWandGeometry();

        SetRayLength(DefaultRayLength);
    }
Ejemplo n.º 4
0
    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.");
        }
    }
Ejemplo n.º 5
0
    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.");
        }
    }