上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 1. 可以根据 Type.GetType(" 类名"+","+"Dll名") dll名 不加后缀 可以获取 类 2. 如果是判断物体上有没有加载这个组件 可以用 gameObject.GetComponent("类名"); 阅读全文
posted @ 2020-09-17 19:45 D个人笔记 阅读(1179) 评论(0) 推荐(0) 编辑
摘要: 1. Can't remove RectTransform because Canvas depends on it Destroy( Object,time);里边第一个参数要Object类型,后改Destroy(Cube.gameObject); 成功 阅读全文
posted @ 2020-09-10 16:09 D个人笔记 阅读(762) 评论(0) 推荐(0) 编辑
摘要: public Sprite DownLoadSprite(string path) { WWW www = new WWW(path); Texture2D texture2D = www.texture; Sprite sprite = Sprite.Create(texture2D, new R 阅读全文
posted @ 2020-07-30 14:34 D个人笔记 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 1.在Unity 文件目录下找到 system.Drawing.dll ,把它放在Assets 目录下 2. 在PlayerSetting 把.Net2.0 换成 Net4.0 3. using System; using System.Collections; using System.Colle 阅读全文
posted @ 2020-07-28 19:02 D个人笔记 阅读(538) 评论(0) 推荐(0) 编辑
摘要: Valve.VR.InteractionSystem.Player vrPlayer = null vrPlayer = GameObject.Find("Player").GetComponent<Valve.VR.InteractionSystem.Player>(); if(vrPlayer. 阅读全文
posted @ 2020-07-23 13:32 D个人笔记 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 当状态机内有多个SetTrigger 来回切换需要做复位操作 究其原因是,当一段动画AClip正在播放触发trigger:A过渡到动画BClip,然后在很短的时间内触发B,ClipB过渡到CClip,这时 A的状态并未复位, 依旧是触发状态,当CClip回到AClip时,你并不需要主动触发A, A依 阅读全文
posted @ 2020-07-15 16:42 D个人笔记 阅读(4171) 评论(0) 推荐(1) 编辑
摘要: 首先导入VRIK 插件 , 没有steamVRIK 的话,在VRIK文件里有这个组件, 再次导入即可 可以自己制作手部动画:握拳 舒展 特殊手势 用Animation 作,很简单 ,下面几种图片是设置 代码: /// <summary> /// 给手臂添加 VRIK 组件 /// </summary 阅读全文
posted @ 2020-07-07 19:51 D个人笔记 阅读(1735) 评论(0) 推荐(0) 编辑
摘要: 其实挺简单的,拿个物体移动,把物体移动的坐标添加到 Line 的坐标里 , 如果再 把每次创建的 Line 存储起来, 可以再做个删除键 , VR 更不用说了 同理 下面是代码 using UnityEngine; using System.Collections; using GoWorldUni 阅读全文
posted @ 2020-07-07 19:48 D个人笔记 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 分辨率 public void ResolutionRatio(int value) { // Debug.Log(value); PlayerPrefs.SetInt("ResolutionRatio", value); switch (value) { case 0: if (PlayerPre 阅读全文
posted @ 2020-05-29 11:17 D个人笔记 阅读(3041) 评论(0) 推荐(0) 编辑
摘要: TextEditor te = new TextEditor(); te.content = new GUIContent(path); te.SelectAll(); te.Copy(); 阅读全文
posted @ 2020-05-08 19:49 D个人笔记 阅读(837) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页