资源简介
几经纠结,终于找到了可以使用的VR插件,适用于unity5.2.1 环境 OCULUS DK2 虚拟现实游戏开发插件,有问题欢迎访问我的本站博客,博客地址:http://blog.csdn.net/moonhot537,和大家一起交流,一起进步!!

代码片段和文件信息
/************************************************************************************
Filename : OVRBuild.cs
Content : Rift editor interface.
This script adds the ability to build demo from within Unity and from
command line
Created : February 14 2013
Authors : Peter Giokaris
Copyright : Copyright 2014 Oculus VR Inc. All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.1 (the “License“);
you may not use the Oculus VR Rift SDK except in compliance with the License
which is provided at the time of installation or download or which
otherwise accompanies this software in either electronic or hard copy form.
You may obtain a copy of the License at
http://www.oculusvr.com/licenses/LICENSE-3.1
Unless required by applicable law or agreed to in writing the Oculus VR SDK
distributed under the License is distributed on an “AS IS“ BASIS
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
************************************************************************************/
using UnityEngine;
using UnityEditor;
//-------------------------------------------------------------------------------------
// ***** OculusBuild
//
// OculusBuild adds menu functionality for a user to build the currently selected scene
// and to also build and run the standalone build. These menu items can be found under the
// Oculus/Build menu from the main Unity Editor menu bar.
//
class OculusBuild
{
#if UNITY_STANDALONE_WIN
// Build the standalone Windows demo and place into main project folder
[MenuItem (“Oculus/Build/StandaloneWindows“)]
static void PerformBuildStandaloneWindows ()
{
if(Application.isEditor)
{
string[] scenes = { EditorApplication.currentScene };
BuildPipeline.BuildPlayer(scenes “Win_OculusUnityDemoScene.exe“ BuildTarget.StandaloneWindows BuildOptions.None);
}
}
// Build the standalone Windows demo and place into main project folder and then run
[MenuItem (“Oculus/Build/StandaloneWindows - Run“)]
static void PerformBuildStandaloneWindowsRun ()
{
if(Application.isEditor)
{
string[] scenes = { EditorApplication.currentScene };
BuildPipeline.BuildPlayer(scenes “Win_OculusUnityDemoScene.exe“ BuildTarget.StandaloneWindows BuildOptions.AutoRunPlayer);
}
else
{
string[] scenes = { “Assets/Tuscany/Scenes/VRDemo_Tuscany.unity“ };
BuildPipeline.BuildPlayer(scenes “Win_OculusUnityDemoScene.exe“ BuildTarget.StandaloneWindows BuildOptions.AutoRunPlayer);
}
}
#endif
#if UNITY_STANDALONE_OSX
// Build the standalone Mac demo and place into main project folder
[MenuItem (“Oculus/Build/StandaloneMac“)]
static void PerformBuildStandaloneMac ()
{
if(Application.isEditor)
{
string[] scenes = { EditorApplication.currentScene };
Bui
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5553 2014-04-11 16:06 OVR\Editor\OVRBuild.cs
..A..H. 221 2016-02-28 07:06 OVR\Editor\OVRBuild.cs.me
文件 4849 2014-04-11 16:07 OVR\Editor\OVRCameraControllerEditor.cs
..A..H. 221 2016-02-28 07:06 OVR\Editor\OVRCameraControllerEditor.cs.me
文件 2177 2014-04-11 16:06 OVR\Editor\OVRDeviceEditor.cs
..A..H. 221 2016-02-28 07:06 OVR\Editor\OVRDeviceEditor.cs.me
文件 1656 2014-04-11 16:06 OVR\Editor\OVREditorGUIUtility.cs
..A..H. 221 2016-02-28 07:06 OVR\Editor\OVREditorGUIUtility.cs.me
文件 2842 2014-04-11 16:06 OVR\Editor\OVRPla
..A..H. 221 2016-02-28 07:06 OVR\Editor\OVRPla
文件 2165 2014-04-11 16:06 OVR\Editor\OVRPrefabs.cs
..A..H. 221 2016-02-28 07:06 OVR\Editor\OVRPrefabs.cs.me
..A..H. 191 2016-02-28 07:07 OVR\Editor.me
文件 778552 2014-04-11 16:06 OVR\Fonts\arial14.ttf
..A..H. 373 2016-02-28 07:06 OVR\Fonts\arial14.ttf.me
文件 778552 2014-04-11 16:06 OVR\Fonts\arial22.ttf
..A..H. 373 2016-02-28 07:06 OVR\Fonts\arial22.ttf.me
..A..H. 191 2016-02-28 07:07 OVR\Fonts.me
文件 733 2014-04-11 16:06 OVR\Materials\CubeMaterial.mat
..A..H. 138 2016-02-28 07:06 OVR\Materials\CubeMaterial.mat.me
文件 745 2014-04-11 16:06 OVR\Materials\GUIHUD.mat
..A..H. 138 2016-02-28 07:06 OVR\Materials\GUIHUD.mat.me
文件 681 2014-04-11 16:06 OVR\Materials\MagHUDRef.mat
..A..H. 138 2016-02-28 07:06 OVR\Materials\MagHUDRef.mat.me
文件 695 2014-04-11 16:06 OVR\Materials\MagHUDTracked.mat
..A..H. 138 2016-02-28 07:06 OVR\Materials\MagHUDTracked.mat.me
文件 748 2014-04-11 16:06 OVR\Materials\TextShader3D.mat
..A..H. 138 2016-02-28 07:06 OVR\Materials\TextShader3D.mat.me
..A..H. 191 2016-02-28 07:07 OVR\Materials.me
文件 1923 2014-04-11 16:06 OVR\OVRImageEffects\OVRImageEffectba
............此处省略117个文件信息
相关资源
- ModelGoon-4.4.1-site.zip
- SVR算法程序可运行
- 右键属性文件校验插件可同时生成十
- ectouch 微信支付插件
- vrml学习实例
- ps插件管家—有效管理插件
- CAD计算板料展开插件
- js万能播放器,网页播放插件实例
- 飞秋插件皮肤
- OPC插件OPC Core Components 2.00 SDK 2.20
- vrml虚拟教室.rar
- vc编写的通达信插件选股
- 幕墙快速建模与出图犀牛插件.rar
- pano2vr全景图制作教程
- 图文手把手教你一步步用VC 2010编写通
- 图文手把手教你一步步用VC 2010编写通
- 基于AVR的NRF24L01跳频通信程序
- u校园刷课助手(浏览器插件源码)
- 海康威视 WEB无插件开发包 V3.2
- eclipse_jetty9离线插件
- redmine系统agile敏捷插件安装包
- Notepad++最新版tidy2插件仅64位可用
- Notepad++ 32位 jsonview插件
- notepad++文本比较插件32位和64位
- notepad++ json格式化插件
-
notepad++ 对比插件 xm
l格式化插件 -
notepad++包含xm
l tools等插件 - Jsonviewer2 for Notepad++ 64 bit
-
Notepad++xm
l格式化插件和json格式化插 - PDF 插件SNAKE
评论
共有 条评论