游戏AI状态机

作者:追风剑情 发布于:2021-11-29 15:46 分类:Unity3d

一、工程截图 AIState.cs using System; /// <summary> /// AI状态基类 /// </summary> public class AIState { //状态ID public virtual int StateId { get { return -1; } set ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1850)

UGUI—头顶飘字

作者:追风剑情 发布于:2021-11-29 15:26 分类:Unity3d

一、工程截图 二、代码 using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 头顶浮动文本 /// </summary> public class UIHeadFloatText :...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1860)

UGUI—文字弹跳效果

作者:追风剑情 发布于:2021-10-21 11:14 分类:Unity3d

示例:文字弹跳效果 工程截图 using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 文字弹跳效果 /// </summary> public class UITextWaveEffect ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1641)

UGUI—InputField

作者:追风剑情 发布于:2021-10-12 15:01 分类:Unity3d

示例 1: 密码输入框 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 密码输入框 /// </summary> public class PasswordInp...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1796)

UGUI—对话框(DialogBox)

作者:追风剑情 发布于:2021-9-27 15:57 分类:Unity3d

示例:对话框 工程截图 代码 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 对话框UI ///...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1685)

Unity 2D Animation

作者:追风剑情 发布于:2021-9-18 14:27 分类:Unity3d

Introduction to 2D Animation Unity 2D 工具包 一、准备和导入PSB文件 1、将动画角色的不同部分放在不同的图层 (Photoshop) 预览 2、保存为大型文档格式(*.PSB) 3、将PSB文件导入Unity ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2076)

Spine骨骼动画制作工具

作者:追风剑情 发布于:2021-9-17 10:06 分类:Unity3d

Spine官网 Spine-Unity 运行时文档 2D骨骼动画(2D Skeleton Animation) 皮肤与皮肤占位符 1、新建皮肤1(skin1)、皮肤2(skin2),并选择skin1 2、在骨骼下新建皮肤占位符(placeholder) 选中skin1,并在placeholder下放置图片gum。再...

阅读全文>>

标签: Unity3d

评论(0) 浏览(4114)

Unity性能分析器 (Unity Profiler)

作者:追风剑情 发布于:2021-8-31 10:12 分类:Unity3d

https://docs.unity3d.com/cn/2019.4/Manual/Profiler.html https://docs.unity3d.com/cn/2019.4/ScriptReference/Profiling.Profiler.EndSample.html https://docs.unity3d.com/cn/2019.4/Manual/RenderingStat...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2123)

游戏资源管理

作者:追风剑情 发布于:2021-8-30 17:19 分类:Unity3d

资源管理模块 using UnityEngine; namespace XFramework { /// <summary> /// 资源模块 /// 对各类资源的管理: /// Texture、TextAsset、GameObject、AudioClip、ScriptObject、Scene ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1955)

UGUI——创建精灵图集(SpriteAtlas)

作者:追风剑情 发布于:2021-8-17 10:15 分类:Unity3d

一、菜单 二、工程截图 生成图集的工具类 AssetsToolEditor 三、写测试脚本 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.U...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2961)

涟漪效果

作者:追风剑情 发布于:2021-8-16 11:05 分类:Unity3d

一、工程截图 二、生成涟漪效果的Shader Shader "Custom/RiffleEffect" { Properties { _MainTex ("Texture", 2D) = "white" {} //涟漪环宽度 _Width ("Width", Range...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1991)

旷视AI开放平台接入

作者:追风剑情 发布于:2021-8-11 14:05 分类:Unity3d

面部特征分析API文档 一、复制官方文档上的访问代码 using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Security; using System.Security.Cryptography.X509Certifica...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2370)

百度AI开放平台接入

作者:追风剑情 发布于:2021-8-9 17:39 分类:Unity3d

using System; using System.Collections; using System.Collections.Generic; using System.Net.Http; using UnityEngine; using UnityEngine.Networking; /// <summary> /// 百度AI开放平台 /// 人像分割 http...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1600)

UGUI——倒计时缩放数字效果

作者:追风剑情 发布于:2021-8-9 17:33 分类:Unity3d

工程截图 using System; using System.Collections; using UnityEngine; using UnityEngine.Events; using UnityEngine.Serialization; using TMPro; /// <summary> /// 倒计时-数字缩放效果 /// <...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1239)

图像粒子化

作者:追风剑情 发布于:2021-8-9 16:31 分类:Unity3d

关键技术:GPU实例、Graphics.DrawMeshInstancedIndirect() 工程截图 处理粒子化的Shader(仅支持DX11) //图像粒子化Shader Shader "Custom/ImageParticleShader" { Properties{ //要显示的图像 ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1994)

二维码扫描效果

作者:追风剑情 发布于:2021-7-13 15:50 分类:Unity3d

工程截图 QRScanLine.cs using UnityEngine; using UnityEngine.UI; /// <summary> /// QR扫描线 /// </summary> public class QRScanLine : MonoBehaviour { [Serializ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2081)

美颜

作者:追风剑情 发布于:2021-7-7 11:59 分类:Shader

一、原理 参考博文 Unity Shader 实现磨皮效果 Bilateral Filters(双边滤波算法)原理及实现(二) 对皮肤美白算法的一些研究 美白公式 效果:图像两端(明-暗)变化弱,中间变化强。 w(x,y)为输入的像素颜色,v(x,y)为输出的像素颜色,beta为调节参数。 双边滤波公式 效果:保边去...

阅读全文>>

标签: Shader

评论(0) 浏览(13501)

表面着色器(一)

作者:追风剑情 发布于:2021-6-15 13:30 分类:Shader

https://docs.unity3d.com/cn/2019.4/Manual/SL-SurfaceShaders.html 一、工程截图 二、Shader代码 //https://docs.unity3d.com/cn/2019.4/Manual/SL-SurfaceShaders.html Shader "Custom/SurfaceSha...

阅读全文>>

标签: Shader

评论(0) 浏览(2432)

地形(Terrain)

作者:追风剑情 发布于:2021-6-3 17:03 分类:Unity3d

官方文档 https://docs.unity3d.com/Manual/script-Terrain.html https://docs.unity3d.com/cn/2020.3/Manual/script-Terrain.html Asset Store中免费的树资源 (Free SpeedTrees Package) ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(13169)

Unity中播放GIF

作者:追风剑情 发布于:2021-5-10 9:54 分类:Unity3d

GIF文件格式介绍 https://www.jianshu.com/p/4fabac6b15b3 GIF文件格式介绍 https://blog.csdn.net/wzy198852/article/details/17266507 GIFLIB 项目 下载GIF播放插件 https://github.com/WestHillApps/UniGif...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3479)

RealWear智能眼镜

作者:追风剑情 发布于:2021-4-21 14:43 分类:Unity3d

这款眼镜只能用语音操作,它的语音识别非常灵敏且无需唤醒词。 眼镜分辨率:854 x 480 配置:Android 8.0,高能骁龙625、2GB RAM/16GB Flash、支持GPS、陀螺仪、罗盘定位、支持13国语言、可与工业头盔组合 充电插Type-C接口 官网 https://realwear.com.cn/products/hmt-1/ 配置 ...

阅读全文>>

评论(0) 浏览(3742)

双击Esc键退出程序

作者:追风剑情 发布于:2021-4-12 13:55 分类:Unity3d

private float lastEscTime; private void Update() { //双击Esc键,退出程序 if (Input.GetKeyDown(KeyCode.Escape)) { if (Time.time - lastEscTime < 0.5f) ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1922)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号