UGUI—画笔

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

示例:在Texture2D上的画笔功能 1、准备一张画笔图片 2、合成图片shader (可选功能) Shader "Custom/ComposeShader" { Properties { _MainTex("Texture", 2D) = "white" {} _SecondTex("Te...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2707)

UGUI—合成Texture

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

一、ComposeTexture.shader Shader "Custom/ComposeShader" { Properties { _MainTex("Texture", 2D) = "white" {} _SecondTex("Texture", 2D) = "white" {} } SubSh...

阅读全文>>

标签: Unity3d

评论(0) 浏览(6107)

UGUI—变换UI元素(UITouchTransform)

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

using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 对RectTransform进行控制 /// 双指缩放、单指移动 /// </summary> public class UITouchTransform : Mono...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2551)

UGUI—RawImage

作者:追风剑情 发布于:2020-9-29 12:38 分类:Unity3d

示例一:通过Texture内存指针显示画面 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 通过Texture内存指针显示画面 /// </su...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3703)

UGUI—文本框计时器

作者:追风剑情 发布于:2020-9-25 11:20 分类:Unity3d

UICalculagraph.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 计时器 /// </summary> public class UICalcu...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2255)

UGUI—UIBehaviour类

作者:追风剑情 发布于:2020-9-24 16:54 分类:Unity3d

namespace UnityEngine.EventSystems { /// <summary> /// Base behaviour that has protected implementations of Unity lifecycle functions. /// </summary> public abstract c...

阅读全文>>

标签: Unity3d

评论(0) 浏览(1974)

Unity C# Job System

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

官方文档 https://docs.unity3d.com/cn/current/Manual/JobSystem.html [Gitcode] Entity Component System Samples Unity C# Job System (Unity C#作业系统) 1、通过Job System用户可以和Unity引擎共享工作线程(worker thread...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2858)

UGUI—UISwitchButton

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

using System; using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; using UnityEngine.EventSystems; using UnityEngine.Serialization; /// <summary> /// 开关按钮 /// </summary&...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2136)

UnityEngine.Input

作者:追风剑情 发布于:2020-9-8 10:42 分类:Unity3d

UnityEngine.Input 属性 描述 backButtonLeavesApp false:安卓机点返回键不退出App;true:安卓机点返回键直接退出App。仅适用于Android、Windows Phone或Windows平板电脑。

阅读全文>>

标签: Unity3d

评论(0) 浏览(2425)

Scut服务器

作者:追风剑情 发布于:2020-8-27 9:50 分类:Unity3d

一、下载Scut服务器 二、安装Redis 三、安装Mysql 导入sql文件: {自己的路径}\scutgame-Scut-master\Scut\Source\DirCenter\db\MySql\importdb.sql {自己的路径}\scutgame-Scut-master\Scut\Source\Tools\ContractTools\db\my...

阅读全文>>

标签: Unity3d

评论(0) 浏览(4082)

UGUI—DirectionButton

作者:追风剑情 发布于:2020-7-24 10:53 分类: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) 浏览(2852)

UGUI—单选按钮

作者:追风剑情 发布于:2020-7-23 18:10 分类:Unity3d

RadioButton.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; using System; /// <summary> /// 单选...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2773)

Application类

作者:追风剑情 发布于:2020-7-17 11:10 分类:Unity3d

一、请求权限 Application.RequestUserAuthorization(UserAuthorization.WebCam);//请求摄像头权限 Application.RequestUserAuthorization(UserAuthorization.Microphone);//请求麦克风权限 二、限制帧率 ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2606)

UGUI—菊花风格Loading

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

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

阅读全文>>

标签: Unity3d

评论(0) 浏览(2822)

Timeline—Animation Track

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

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

阅读全文>>

标签: Unity3d

评论(0) 浏览(2490)

Timeline—Control Track

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

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

阅读全文>>

标签: Unity3d

评论(0) 浏览(4508)

Timeline—Playable Track

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

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

阅读全文>>

标签: Unity3d

评论(0) 浏览(5044)

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) 浏览(2012)

布料组件—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) 浏览(3146)

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) 浏览(3606)

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) 浏览(4447)

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) 浏览(3773)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号