UGUI—菊花风格Loading

作者:追风剑情 发布于:2020-7-1 13:48 分类:Unity3d

一、工程截图 WaitLoadingUI.cs using UnityEngine; using UnityEngine.UI; /// <summary> /// 转菊花-加载界面 /// </summary> public class WaitLoadingUI : GameEventBehaviour { ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2810)

Timeline—Animation Track

作者:追风剑情 发布于:2020-6-19 16:30 分类:Unity3d

Animation Track控制场景中某个挂有Animator的对象何时播放某个Animation。 一、工程

阅读全文>>

标签: Unity3d

评论(0) 浏览(2487)

Timeline—Control Track

作者:追风剑情 发布于:2020-6-19 15:42 分类:Unity3d

Control Track支持在时间轴上放置Prefab,并由Timeline管理Prefab对象的创建与销毁(即,生命周期)。 一、创建几个动画Prefab 二、将动画Prefab拖到时间线上 三、运行时Timeline会自动实例化时间轴上的Prefab对象 运行效果

阅读全文>>

标签: Unity3d

评论(0) 浏览(4498)

Timeline—Playable Track

作者:追风剑情 发布于:2020-6-17 15:38 分类:Unity3d

Playable Track支持在时间轴上放置脚本,并由Timeline控制脚本中生命周期函数的触发。 一、工程结构 在场景中创建GameObject并挂上Playable Director组件 创建MyPlayableAsset.cs和MyPlayableBehaviour.cs脚本 MyPlayab...

阅读全文>>

标签: Unity3d

评论(0) 浏览(5038)

全息效果

作者:追风剑情 发布于:2020-6-16 18:14 分类:Shader

参考 https://blog.csdn.net/xiaoge132/article/details/77801931 //全息效果 Shader "Custom/Silhouette" { Properties { _MainTex ("Texture", 2D) = "white" {} _Color(...

阅读全文>>

标签: Shader

评论(0) 浏览(2024)

WebCamTexture

作者:追风剑情 发布于:2020-5-29 13:18 分类:Unity3d

WebCamTexture API详解 https://blog.csdn.net/it_yanghui/article/details/78615209 在使用ZXing库竖屏扫描二维码时,发现画面旋转了90度。 解决方案:使用下面的shader校正渲染到RawImage上的画面 Shader "Custom/WebCamShader" ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2004)

布料组件—Cloth

作者:追风剑情 发布于:2020-5-22 10:49 分类:Unity3d

官方文档 https://docs.unity3d.com/ScriptReference/Cloth.html 组件参数 https://zhuanlan.zhihu.com/p/101286505 组件参数 https://www.cnblogs.com/lihonglin2016/p/5141231.html 示例:飘动...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3136)

NGUI分割图集

作者:追风剑情 发布于:2020-4-20 12:52 分类:Unity3d

示例:将现有的整张图集重新分割成单张图片 工程截图 分割脚本 using System; using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEditor; [E...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3596)

UGUI—显示聊天表情

作者:追风剑情 发布于:2020-4-14 14:34 分类:Unity3d

工程截图 UIEmojiTextEditor.cs (将这个脚本放在Editor目录下) using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEditor; nam...

阅读全文>>

标签: Unity3d

评论(0) 浏览(4433)

UGUI—跑马灯文本

作者:追风剑情 发布于:2020-4-9 17:03 分类:Unity3d

工程截图 using System; using System.Collections; using System.Collections.Generic; using System.Text.RegularExpressions; using UnityEngine; using UnityEngine.UI; using UnityEngine....

阅读全文>>

标签: Unity3d

评论(0) 浏览(3764)

体感控制器——Leap Motion

作者:追风剑情 发布于:2020-4-8 15:16 分类:Unity3d

官网 https://developer.leapmotion.com/unity 下载 https://developer.leapmotion.com/releases Unity插件文档 https://leapmotion.github.io/UnityModules/ Unity插件下载 https://github.com/leapm...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2766)

UGUI—伤害飘字

作者:追风剑情 发布于:2020-3-31 14:45 分类:Unity3d

一、工程截图 用到的缓动脚本 UITweenPosition UITweenScale UITweenAlpha UIHurtText.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEn...

阅读全文>>

标签: Unity3d

评论(0) 浏览(4317)

UGUI—UITweenScale

作者:追风剑情 发布于:2020-3-31 14:25 分类:Unity3d

using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; using UnityEngine.Serialization; using Uni...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2128)

雷达地图

作者:追风剑情 发布于:2020-3-30 17:57 分类:Unity3d

Map、Background、Player的Anchors都设置成左下角。 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 雷达地图 (主界面右上角的小地图) /// <...

阅读全文>>

标签: Unity3d

评论(0) 浏览(13105)

显示角色头顶名字

作者:追风剑情 发布于:2020-3-24 13:01 分类:Unity3d

示例:利用UGUI的Text显示角色名称 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 角色头顶名字 /// </summary> p...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3741)

RPG角色控制

作者:追风剑情 发布于:2020-3-19 14:09 分类:Unity3d

一、在资源商店下载一个场景和一个带动画的角色 二、调整角色动画控制器 三、编写角色控制器脚本并挂到Player对象上 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2115)

内置的Skybox.shader

作者:追风剑情 发布于:2020-3-10 13:30 分类:Shader

// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) Shader "Custom/Skybox/6 Sided" { Properties { _Tint ("Tint Color", Color) = (.5, .5, .5, ...

阅读全文>>

标签: Shader

评论(0) 浏览(2046)

PlayerSettings

作者:追风剑情 发布于:2020-1-15 15:10 分类:Unity3d

Standalone平台设置 Mac Retina Support:  勾上会提高在Mac电脑上的显示质量,同时会消耗更多资源。 Run In Background: 勾上允许后台运行。 Capture Single Screen: 勾上后既可以在主屏显示也可以在分屏显示。 Display Resolution Dialog:D...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2242)

UnityWebRequest

作者:追风剑情 发布于:2019-12-12 16:43 分类:Unity3d

示例一:上传视频 /// <summary> /// 上传视频 /// </summary> /// <param name="url">上传视频地址</param> /// <param name="bytes">视频文件内容</param> /// <returns></re...

阅读全文>>

标签: Unity3d

评论(0) 浏览(5703)

UGUI—TextMeshPro

作者:追风剑情 发布于:2019-12-11 21:04 分类:Unity3d

TextMeshPro Manual Rich Text Tags 一、让TextMeshPro可以显示中文 1、导入字体文件TTF 2、Window->TextMeshPro->Font Asset Creator 在网上找到常用汉字复制到Custom Character List中,点击Generate Font...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3045)

UGUI—UIMultipleClick

作者:追风剑情 发布于:2019-12-2 14:32 分类:Unity3d

示例 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; using UnityEngine.Serialization; /...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2750)

UGUI—UISpriteAnimation

作者:追风剑情 发布于:2019-12-2 11:32 分类:Unity3d

示例 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Sprites; using UnityEngine.U2D; using UnityEngine.UI; /// <summary> /// UI精灵动画 //...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3090)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号