- 博客(8)
- 资源 (5)
- 收藏
- 关注
原创 Unity OpenXR+XR Interaction Toolkit实现 UI交互
对于Canvas要做如下设置 在右手控制器的XRRayInteractor中,要勾选Enable Interaction With UI GameObjects 接下来就可以给UI添加相应的逻辑了
2024-09-09 19:17:40
350
原创 Unity中如何将Json解析成字典
Unity要将Json解析成字典,首先得引用Newtonsoft.Json.dll文件,然后得自己定义一个反序列化Json的类。using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using Newtonsoft.Json; using System.IO; public class Test : MonoBehaviour { void Sta..
2020-09-28 20:21:59
2998
原创 Unity双击的实现方法
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; public class TimeTest : MonoBehaviour { //定义一个双击事件 UnityEvent doubleClick = new UnityEvent(); //第一次点击 ...
2020-09-23 20:54:40
637
原创 Unity打包后发布成安装包(NSIS+Duilib)
Unity打包后生成了两个文件(abc.exe和abc_Data),双击abc.exe就可以直接打开我们的应用程序了,但是如何制作高大上的安装包呢?类似百度网盘、驱动精灵等有安装路径、开机启动项、生成快捷方式等选项。使用NSIS+Duilib即可实现,放上模版链接:http://www.leeqia.com/nsniuniuskin/template/UI部分由Duilib来实现,安装流程由NSIS脚本来控制。通过模版链接下载模版文件,打开后目录如下:进入SetupScripts文件夹下:
2020-08-07 15:34:10
1809
1
原创 物体绕某一点旋转
void RotatePoint() { Quaternion rot = Quaternion.AngleAxis(Time.deltaTime*100,Vector3.up); transform.rotation = rot * transform.rotation; transform.Rotate(new Vector3(0, 0...
2018-12-28 10:56:20
1551
原创 Unity解析Json
using System.Collections;using System.Collections.Generic;using UnityEngine;using LitJson;public class JsonReceive : MonoBehaviour{ public string Code; public List<PointList> _poin...
2018-11-24 15:57:22
272
转载 Loom工具类的使用
using UnityEngine;using System.Collections;using System.Collections.Generic;using System;using System.Threading;using System.Linq;public class Loom : MonoBehaviour{ public static int maxT...
2018-11-07 11:47:24
492
DustAccumulation.shader
2020-10-13
WaterAndGas.shader
2020-10-12
Fire Spell Effects.unitypackage
2020-09-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人