unity 2018.4.0+SteamVR1.2.2+VRTK3.2.1报错解决

开发案例参考 07-游乐设备选择场景搭建_哔哩哔哩_bilibili

导入之后代码报错Assets/SteamVR/Editor/SteamVR_Settings.cs(135,49): error CS0117: `UnityEditorInternal.VR.VREditor' does not contain a definition for `GetVREnabledDevices'

解决方法 打开SteamVR_Settings

脚本,修改代码135行

```

//var devices = UnityEditorInternal.VR.VREditor.GetVREnabledDevices(BuildTargetGroup.Standalone);
var devices = UnityEditorInternal.VR.VREditor.GetVREnabledDevicesOnTargetGroup(BuildTargetGroup.Standalone);

```

代码157行

```

//UnityEditorInternal.VR.VREditor.SetVREnabledDevices(BuildTargetGroup.Standalone, newDevices);
UnityEditorInternal.VR.VREditor.SetVREnabledDevicesOnTargetGroup(BuildTargetGroup.Standalone, newDevices);

```

Texture()爆红

新版本已经不支持Texture()方法了,直接注释掉。不影响使用

代码中提示缺少.Net4.7.1

下载 .NET Framework 4.7.1 Developer Pack Offline Installer

 安装一下

DllNotFoundException: openvr_api

 

 

 开发测试需要

 VR头显、手柄、定位器(HTC)

下载Steam,并安装好SteamVR,配置游玩模式(站立/房间)

>摘要:参考B站老师的课程

07-游乐设备选择场景搭建_哔哩哔哩_bilibili

课程使用HTC Vive设备开发,使用SteamVR1.2.2和VRTK3.2.1版本开发。 将游乐项目在VR里体验,使用新版VRTK实现了射线与UI的交互、新版VRTK的使用。 课程资料 链接:https://pan.baidu.com/s/1q228vm2oc65fPOTO5xncTg 提取码:igfl

好好学习吧!~~

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值