随笔分类 -  Unity3d

1
摘要:1.标准的层级结构 ScrollRect->ViewPort->Content,Viewport负责显示区域的大小一般和Mask一起配合使用,Content使用Layout来布局,如果想使用代码来自动定位显示位置需要在Content加上Content size filter. 2.ScrollRec 阅读全文
posted @ 2019-01-08 15:11 非法关键字 阅读(454) 评论(0) 推荐(0) 编辑
摘要:直接上码 阅读全文
posted @ 2018-10-09 18:33 非法关键字 阅读(1359) 评论(0) 推荐(0) 编辑
摘要:1.代码结构图 2.SmartTimer 模块Entity: 1 using System; 2 3 namespace ETModel 4 { 5 [ObjectSystem] 6 public class SmartTimerAwakeSystem: AwakeSystem<SmartTimer 阅读全文
posted @ 2018-08-20 00:00 非法关键字 阅读(447) 评论(0) 推荐(0) 编辑
摘要:初始化事件 UILoading组件 tkBootComponent中的场景切换代码 tkBootComponent 1 using System; 2 using System.Threading.Tasks; 3 using DG.Tweening; 4 using ETModel; 5 usin 阅读全文
posted @ 2018-08-16 00:17 非法关键字 阅读(554) 评论(0) 推荐(0) 编辑
摘要:1.光标以及光标动画的显示 2.头盔相机射线确定光标位置以及点击逻辑的实现 3.射线碰撞面的大小适应 4.unity3d的层次结构 阅读全文
posted @ 2018-08-06 16:16 非法关键字 阅读(466) 评论(0) 推荐(0) 编辑
摘要:很多项目都有自己重写Debug.Log的习惯,难免会遇到在Unity的Console窗口中双击日志, 但是没法直接跳转到想要看到的代码那一行的时候,解决办法有以下2种: 使用方法: 本文为转载, 原文链接:https://blog.csdn.net/l449612236/article/detail 阅读全文
posted @ 2018-06-21 10:11 非法关键字 阅读(412) 评论(0) 推荐(0) 编辑
摘要:1.首先从Github-Protobuf下载代码,本文下载的版本号是3.1.0. 2.仔细查看各个README,有相关的资源下载和编译说明. 3.在一个方便的地方创建一个Install类型的文件夹,放置Cmake生成的工程文件相关内容,使用CMake-gui配置,生成visual studio id 阅读全文
posted @ 2018-05-01 01:39 非法关键字 阅读(3410) 评论(0) 推荐(0) 编辑
摘要:Typically, Unity will be launched by double-clicking its icon from the desktop but it is also possible to run it from the command line (ie, the MacOS 阅读全文
posted @ 2018-04-23 17:06 非法关键字 阅读(4993) 评论(0) 推荐(0) 编辑
摘要:Hidden Folders Folders that start with a dot (e.g. ".UnitTests/", ".svn/") are ignored by Unity. Any assets in there are not imported, and any scripts 阅读全文
posted @ 2018-04-23 17:03 非法关键字 阅读(273) 评论(0) 推荐(0) 编辑
摘要:本方法是对Ez-Sound-Manager的扩展 https://github.com/JackM36/Eazy-Sound-Manager 参考Audio Toolkit Free Version http://unity.clockstone.com/ 1 using System; 2 usi 阅读全文
posted @ 2018-03-29 12:25 非法关键字 阅读(1271) 评论(0) 推荐(0) 编辑
摘要:使用 Unity 的C#语言 ,利用属性(Attribute)来类定义和变量定义或区分其他的变量,您可以设置一种特殊行为 例如,您添加[SerializeField]属性变量,私有变量标识序列化。 [SerializeField] int 计数; 序列化您'的值是存储到场景和预制体。因为值存储在me 阅读全文
posted @ 2018-03-03 16:39 非法关键字 阅读(1390) 评论(0) 推荐(0) 编辑
摘要:在使用Supersocket Server的过程中,发现Server是不支持.net 3.5的. 1.Server端中的几个Command: 1 namespace SuperSocketProtoServer.Protocol.Command 2 { 3 public class CallMess 阅读全文
posted @ 2017-11-30 23:10 非法关键字 阅读(3538) 评论(6) 推荐(0) 编辑
摘要:查看生成的person.bin 阅读全文
posted @ 2017-11-27 21:51 非法关键字 阅读(1264) 评论(0) 推荐(0) 编辑
摘要:下面的改写让泛型单例支持使用Private的构造函数,这样做更严谨: 阅读全文
posted @ 2017-11-12 11:21 非法关键字 阅读(692) 评论(0) 推荐(0) 编辑
摘要:通过Clip名称更改动画片段 通过Animation名称指定Animator的Library 阅读全文
posted @ 2017-11-07 23:34 非法关键字 阅读(285) 评论(0) 推荐(0) 编辑
摘要:Thread Ninja说明: Thread Ninja - Multithread Coroutine Requires Unity 3.4.0 or higher. A simple script helps you write multithread coroutines. Unity's c 阅读全文
posted @ 2017-11-03 22:19 非法关键字 阅读(724) 评论(0) 推荐(0) 编辑
摘要:需要使用的插件库说明: Loxodon Framework Log4NetVersion: 1.0.0© 2016, Clark Yang Thank you for purchasing the plugin!I hope you enjoy using the product and that 阅读全文
posted @ 2017-11-03 16:19 非法关键字 阅读(1381) 评论(0) 推荐(0) 编辑
摘要:数量使用的不太多,没有实现对象池. Smart Timers Manager 阅读全文
posted @ 2017-11-01 22:59 非法关键字 阅读(659) 评论(0) 推荐(0) 编辑
摘要:修改Zenject下ProfileBlock.cs源码, 取消有关UnityEngine.Profiling.Profiler的代码. 然后使用Zenject的Signal: // 定义Signal public class TestCrossThreadCommEvent : Signal<str 阅读全文
posted @ 2017-09-10 13:43 非法关键字 阅读(1418) 评论(0) 推荐(0) 编辑
摘要:a.命令行版本:https://gist.github.com/jbevain/ba23149da8369e4a966f#file-pdb2mdb-exe b.GUI版本:https://github.com/shravan2x/Pdb2Mdb-GUI 阅读全文
posted @ 2017-09-10 12:58 非法关键字 阅读(448) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示