This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

VR Project Migration

Upgrading your VR project in SDK Browser using the Upgrade option is not enough to build it — additional manual operations are required.

Essentially, you'll need to create a new 2.18 VR project and copy the required files to your project that has been upgraded to 2.18 from a n earlier version. Before copying files from a template project, you need to delete identical and unnecessary files from your project (otherwise, new files won't be added properly).

Notice
This version of the article reviews the process of upgrading of C++ VR projects only. You can switch to the C# version in the upper right corner of this page.

Now let's go step by step.

Migrating a VR Project
#

  1. Create a new 2.18 VR project using the VR Template. If your project initially was based on the VR Sample demo project, create a new VR project using the 2.18 VR Sample demo as well.
  2. Export vr_template/VR.node from the empty project as a package.
  3. In SDK Browser, click Upgrade for your project to upgrade assets in your project to 2.18.

  4. Open your project in Editor and close the world.
  5. You can try to import the package you exported from the empty 2.18 template project at Step 1. You'll see the assets highlighted red (they actually duplicate the ones that exist in your project) — delete duplicate *.prop assets from your project, then cancel importing the package.

    Namely, delete the following folders and files:

    • vr_template/

      • VR.node
    • vr_template/properties/

      • AttachToHead.prop
      • HandMenuSampleGui.prop
      • MeshSkinnedHandMapper.prop
      • NodeSwitchEnableByGesture.prop
      • NodeSwitchEnableByKey.prop
      • vr_player_spawner.prop
    Notice
    If you modified any of these and other files to be updated, make a backup to modify the updated files later.
  6. Import the package you exported from the empty 2.18 template project at Step 1.
  7. Replace the source/Framework folder by the same folder from the new template project.

    If your project initially has been created based on the VR Sample demo project, you'll also need to replace the source/Demo folder content.

  8. Open the project in IDE and add new files such as AttachToHand and MIxedRealitySampleGui to the solution.
  9. Then build the project and fix it by processing the error messages. Update the code (written by you) that interacts with the template components that have been changed.

Launching App in VR Mode
#

Launching in IDE
#

Running a VR project from the IDE requires adding command-line arguments. For example, in Visual Studio you can do this way:

  1. Open the project Debug Properties:

  2. In Command line arguments, add -vr_app openvr at the end of the line:

Notice
Make sure to remove any arguments running the outdated VR plugins (such as
-extern_plugin UnigineOpenVR).
Last update: 2024-02-27
Build: ()