上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using Valve.VR; using Valve.VR.Extras; /// <summary> /// /// 所有输入的监听 // 阅读全文
posted @ 2020-04-28 15:17 D个人笔记 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 帮两个,一个控制水平,一个控制上下 using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseLook : MonoBehaviour { //MouseLook. 阅读全文
posted @ 2020-04-28 15:15 D个人笔记 阅读(257) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; using GoWorldUnity3D; using Valve.VR.Extras; using Valve.VR; /// <summary> /// 画笔画线 /// </summary> public 阅读全文
posted @ 2020-04-28 15:13 D个人笔记 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 别的不说了,请搭梯子,去吧 https://translate.google.com.hk/translate?hl=zh-CN&sl=en&u=https://developer.oculus.com/documentation/unity/unity-ovrinput/&prev=search 阅读全文
posted @ 2020-03-19 09:54 D个人笔记 阅读(381) 评论(0) 推荐(0) 编辑
摘要: private void Awake() { Invoke("transParent", 1); } private void transParent() { for (int i = 0; i < transform.childCount; i++) { if(transform.GetChild 阅读全文
posted @ 2020-01-19 17:56 D个人笔记 阅读(2491) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.SceneManagement; public class Globe { public static string nextSc 阅读全文
posted @ 2020-01-15 17:16 D个人笔记 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Vector3 pos = Camera.main.ScreenToWorldPoint(Input.mousePosition+new Vector3(0,0,1)); 3D物体加个z轴方向,2D物体不需要加 阅读全文
posted @ 2020-01-10 11:40 D个人笔记 阅读(784) 评论(0) 推荐(0) 编辑
摘要: 索引器 : 索引器类似于属性,可以让类的成员被快速访问,使用一个或多个参数可以索引到类中的成员 声明: 访问修饰符 数据类型 this [数据类型 索引参数] { get { return } set {字段=Value} } 使用:对象名[ 索引参数 ] class Z { //可容纳100个整数 阅读全文
posted @ 2019-12-25 14:15 D个人笔记 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1 using UnityEngine; 2 using System.Collections; 3 //物体抖动 4 public class ObjectShake : MonoBehaviour { 5 6 public bool isEnable=true; 7 public Vector3 阅读全文
posted @ 2019-12-10 16:19 D个人笔记 阅读(1721) 评论(0) 推荐(0) 编辑
摘要: 在同一个项目中改LinkVR和VR最后分开,LinkVR在使用运行和打包的时候要用LinkVR的一个小软件把Unity中的一部分配置信息替换下,才能运行打包,在打包的时候注意配置,和它运行的配置一至。 在打VR包的时候需要注意如果之前用LinkVR改了配置的,要重新替换回来 这玩意关了,如果之前导入 阅读全文
posted @ 2019-11-21 10:01 D个人笔记 阅读(481) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页