示例#1
0
 void SetupInteractorsTree()
 {
     m_InteractionManager = UnityEngine.Object.FindObjectOfType <XRInteractionManager>();
     if (m_InteractionManager)
     {
         m_InteractorsTree = XRInteractorsTreeView.Create(m_InteractionManager, ref m_InteractorsTreeState, ref m_InteractorsTreeHeaderState);
         m_InteractorsTree.ExpandAll();
     }
 }
        void SetupInteractorsTree()
        {
            var interactionManager = FindObjectOfType <XRInteractionManager>();

            if (interactionManager != null)
            {
                m_InteractorsTree = XRInteractorsTreeView.Create(interactionManager, ref m_InteractorsTreeState, ref m_InteractorsTreeHeaderState);
                m_InteractorsTree.ExpandAll();
            }
        }