Ejemplo n.º 1
0
        public void LoadModule()
        {
            IForEachRayOriginMethods.forEachRayOrigin  = IterateRayOrigins;
            IRayToNodeMethods.requestNodeFromRayOrigin = RequestNodeFromRayOrigin;
            INodeToRayMethods.requestRayOriginFromNode = RequestRayOriginFromNode;

            var moduleLoaderCore = ModuleLoaderCore.instance;

            m_ToolModule            = moduleLoaderCore.GetModule <EditorXRToolModule>();
            m_WorkspaceModule       = moduleLoaderCore.GetModule <WorkspaceModule>();
            m_MenuModule            = moduleLoaderCore.GetModule <EditorXRMenuModule>();
            m_MiniWorldModule       = moduleLoaderCore.GetModule <EditorXRMiniWorldModule>();
            m_DirectSelectionModule = moduleLoaderCore.GetModule <EditorXRDirectSelectionModule>();
            m_SerializedPreferences = moduleLoaderCore.GetModule <SerializedPreferencesModule>();
            m_IntersectionModule    = moduleLoaderCore.GetModule <IntersectionModule>();

            var selectionModule = moduleLoaderCore.GetModule <SelectionModule>();

            if (selectionModule != null)
            {
                ignoreList = selectionModule.standardIgnoreList;
            }

            m_ModuleParent = moduleLoaderCore.GetModuleParent().transform;
        }
Ejemplo n.º 2
0
 public void ConnectDependency(EditorXRDirectSelectionModule dependency)
 {
     m_DirectSelectionModule        = dependency;
     dependency.objectsGrabbed     += OnObjectsGrabbed;
     dependency.objectsDropped     += OnObjectsDropped;
     dependency.objectsTransferred += OnObjectsTransferred;
 }
Ejemplo n.º 3
0
        public void LoadModule()
        {
            UsesCustomMenuOriginsMethods.getCustomMenuOrigin          = GetCustomMenuOrigin;
            UsesCustomMenuOriginsMethods.getCustomAlternateMenuOrigin = GetCustomAlternateMenuOrigin;

            var moduleLoaderCore = ModuleLoaderCore.instance;

            m_DirectSelectionModule = moduleLoaderCore.GetModule <EditorXRDirectSelectionModule>();
            m_ToolModule            = moduleLoaderCore.GetModule <EditorXRToolModule>();
        }
Ejemplo n.º 4
0
 // Unused dependency to ensure IUsesPointer is satisfied
 public void ConnectDependency(EditorXRDirectSelectionModule dependency)
 {
 }