资源简介
几经纠结,终于找到了可以使用的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个文件信息
相关资源
- keil与proteus联调插件
- 虚拟现实文件福音 BSContactVRML播放器
- WPBakery Visual Composer v5.2 中文版wordpre
- Unity好用的UI插件 New UI Widgets1.9.3,2
- PDF一键转曲插件方便好用
- 大漠插件7.1830
- HT-5.08弯针立式贴片插座封装三维PCB封
- FREEICQ完全版+插件
- 虚拟增强现实白皮书2018年.pdf
- 药代动力学PK的excel插件含教程
- cad线切割的插件
- 基于Vrml的,有居民区,街道,教室,
- COOLPRO音效插件Native Bundle 2.0
- Behavior Designer 1.6行为树插件及中文文
- 山寨四路视频采集卡/EasyCap usb 2 DVR
- 2D Toolkit v2.5.8.6.unitypackage
- unity3d QuickRopes3.16 绳子创建插件
- BASCOM-AVR的例程
- isoview7 插件
- Eclipse SVN插件中文版本及安装教程si
- mapinfo插件合集完整版
- Atmeg16学习笔记
- 林夕依然ATmega16学习笔记 学习AVR
- MyEclips中JS代码提示插件(spket)
- SketchUp 8 插件
- unity 仿THE LAB HTC VR VIVE瞬移系统
- unity 多点触控插件Touch Controls Kit v1.
- Ferr2D Terrain Tool - 快速制作2D卡通地形
- v-rep 室内场景
- ue4 音频可视化插件
评论
共有 条评论