自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (5)
  • 收藏
  • 关注

原创 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 2662

原创 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 551

原创 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 1604 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 1484

原创 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 235

转载 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 429

DustAccumulation.shader

此shader可模拟积雪、积灰等效果 1、Base为模型的基础贴图、Bump为法线贴图 2、snowlevel可设置积雪或积灰的强度 3、snowcolor为积雪或积灰的颜色 4、snowdirection为积雪或积灰的方向

2020-10-13

WaterAndGas.shader

1、两种颜色的阶梯变化,可模拟液态水变成气态水 2、可通过调节Shader中的Soften改变颜色过度的范围 3、调节MainValue控制颜色的占比

2020-10-12

War FX.unitypackage

1、包含50种特效 2、特效的喷射效果有关 3、其中包含火焰燃烧特效、火焰喷射特效 4、有大量的与火焰相关的粒子效果的贴图

2020-09-16

Fire Spell Effects.unitypackage

1、包含10中跟火焰相关的粒子效果 2、拖入Unity引擎中即可使用 3、通过UI上的“+”号可以切换粒子效果 4、通过键盘的”空格键“触发粒子效果

2020-09-15

模拟电流效果(shader)

模拟电流效果(shader),将此shader导入Unity引擎中可直接使用

2018-10-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除