Example #1
0
 void SetupInteractablesTree()
 {
     m_InteractionManager = UnityEngine.Object.FindObjectOfType <XRInteractionManager>();
     if (m_InteractionManager)
     {
         m_InteractablesTree = XRInteractablesTreeView.Create(m_InteractionManager, ref m_InteractablesTreeState, ref m_InteractablesTreeHeaderState);
         m_InteractablesTree.ExpandAll();
     }
 }
        void SetupInteractablesTree()
        {
            var interactionManager = FindObjectOfType <XRInteractionManager>();

            if (interactionManager != null)
            {
                m_InteractablesTree = XRInteractablesTreeView.Create(interactionManager, ref m_InteractablesTreeState, ref m_InteractablesTreeHeaderState);
                m_InteractablesTree.ExpandAll();
            }
        }