Пример #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;
        }
Пример #2
0
        public void LoadModule()
        {
            IUsesPointerMethods.getPointerLength = GetPointerLength;

            var moduleLoaderCore = ModuleLoaderCore.instance;

            m_IntersectionModule = moduleLoaderCore.GetModule <IntersectionModule>();
            m_MiniWorldModule    = moduleLoaderCore.GetModule <EditorXRMiniWorldModule>();
            m_RayModule          = moduleLoaderCore.GetModule <EditorXRRayModule>();
            m_SceneObjectModule  = moduleLoaderCore.GetModule <SceneObjectModule>();
            m_ViewerModule       = moduleLoaderCore.GetModule <EditorXRViewerModule>();
            m_ToolModule         = moduleLoaderCore.GetModule <EditorXRToolModule>();
        }