摘要: 案例来源: https://nodecanvas.paradoxnotion.com/downloads/ Example Scenes ( Unity 2018.4.14+ ) 一:BTree Events Demonstrates how events can be used in the co 阅读全文
posted @ 2022-04-03 21:40 sun_dust_shadow 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 根据知乎: https://www.zhihu.com/question/452918374 q+p1+p2+p3+p4+p5+p6+p7+p8+p9=1 我们项目需要 中间是固定次数个p1(初始有固定次数个初始概率),如果固定次数为1 则类似于上面链接的描述 结果: using System.Co 阅读全文
posted @ 2022-03-30 11:41 sun_dust_shadow 阅读(486) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/XLua_API.md LuaEnv类 object[] DoString(string chunk, string chunkName = "chuck", LuaTable e 阅读全文
posted @ 2022-02-28 21:47 sun_dust_shadow 阅读(191) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/hotfix.md xLua所有的配置都支持三种方式:打标签;静态列表;动态列表。 配置有两必须两建议: 列表方式均必须是static的字段/属性 列表方式均必须放到一个stati 阅读全文
posted @ 2022-02-27 23:37 sun_dust_shadow 阅读(326) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/XLua%E6%95%99%E7%A8%8B.md 本章节涉及到的实例均在XLua\Tutorial\LuaCallCSharp下 new C#对象 你在C#这样new一个对象: 阅读全文
posted @ 2022-02-27 19:36 sun_dust_shadow 阅读(263) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/XLua%E6%95%99%E7%A8%8B.md C#访问Lua 这里指的是C#主动发起对Lua数据结构的访问。 本章涉及到的例子都可以在XLua\Tutorial\CSharp 阅读全文
posted @ 2022-02-27 18:47 sun_dust_shadow 阅读(157) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/XLua%E6%95%99%E7%A8%8B.md Lua文件加载 执行字符串 最基本是直接用LuaEnv.DoString执行一个字符串,当然,字符串得符合Lua语法 比如: l 阅读全文
posted @ 2022-02-27 16:07 sun_dust_shadow 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 主要参考:https://zhuanlan.zhihu.com/p/390456989 https://forum.unity.com/threads/confused-on-batching.1115887/ 链接中 bgolus 的评论 几个概念1.DrawCall 2.Batch 3.Stat 阅读全文
posted @ 2022-02-14 21:41 sun_dust_shadow 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/Kare/p/4601436.html https://www.cnblogs.com/sun-shadow/p/14478623.html 这个自己的 需要整合一下 1 class Program 2 { 3 public class NewC 阅读全文
posted @ 2022-01-26 21:12 sun_dust_shadow 阅读(55) 评论(0) 推荐(0) 编辑
摘要: vistual studio 扩展->reshaper->Tools->External Sources ->Navigation to Sources 开启转到反编译代码 关闭的话选择 Default Visual Studio navigation 阅读全文
posted @ 2022-01-25 11:40 sun_dust_shadow 阅读(126) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/44827059/syntax-highlighting-with-c/44955728 1. File -> Settings -> Editor -> Inspection Settings you can turn of 阅读全文
posted @ 2022-01-18 11:12 sun_dust_shadow 阅读(1507) 评论(0) 推荐(0) 编辑
摘要: http://www.nz998.com/other/65990.html 阅读全文
posted @ 2022-01-15 14:37 sun_dust_shadow 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1.timescale和fixedupdate的关系 https://docs.unity3d.com/ScriptReference/Time-timeScale.html 以下依timescale = 0.1为例。 首先定义概念: (1)游戏世界gametime和现实世界realtime。 (2 阅读全文
posted @ 2022-01-11 15:09 sun_dust_shadow 阅读(523) 评论(0) 推荐(0) 编辑
摘要: WaitForFixedUpdate在当前物理帧的最后执行,而不是下一物理帧的最后或者之前: https://docs.unity3d.com/Manual/ExecutionOrder.html Time.frameCount是逻辑帧自增,和物理帧无关 https://answers.unity. 阅读全文
posted @ 2022-01-11 14:23 sun_dust_shadow 阅读(675) 评论(0) 推荐(0) 编辑
摘要: unity 双击cs文件 rider无响应 1.rider链接unity不成功的问题 unity 偏好里 选择 rider.exe是无效的,需要在unity Windows->packManger内查找并安装 rider extend 2.packManger链接不上 [PackageManager 阅读全文
posted @ 2022-01-09 22:25 sun_dust_shadow 阅读(919) 评论(0) 推荐(0) 编辑
摘要: System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff:ffffff")) 阅读全文
posted @ 2021-12-31 16:11 sun_dust_shadow 阅读(2503) 评论(0) 推荐(0) 编辑
摘要: 1.object实际是 list<T> 的话 比如T为 int float,但具体是什么不确定 可以使用 IList接口,进行 clear、获取值 Dict同理。 object强转 List<object>是不正确的 会获取null 2.如果类型不好判断, 用序列化和反序列化, 存个string进行 阅读全文
posted @ 2021-12-24 19:22 sun_dust_shadow 阅读(921) 评论(0) 推荐(0) 编辑
摘要: float a= Mathf.LerpAngle(-100,1000, 0.5f); Debug.Log("Mathf.LerpAngle : "+ a); a = Mathf.LerpUnclamped(-100, 1000, 1.5f); Debug.Log("Mathf.LerpUnclamp 阅读全文
posted @ 2021-12-16 10:48 sun_dust_shadow 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 2.连接adb (1)手机usb电脑后,开发者模式 (2)win控制台cmd:进电脑的adb.exe路径 例:C:\Users\YH-10005>cd C:\Users\YH-10005\AppData\Local\Android\Sdk\platform-tools (3.)链接:输入:adb d 阅读全文
posted @ 2021-11-15 20:07 sun_dust_shadow 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 1 public static void GetAllSkeletonName(Transform rootTrans,ref List<string> nameList) 2 { 3 SetChildSkeletonName(rootTrans, ref nameList); 4 } 5 6 pu 阅读全文
posted @ 2021-09-23 21:58 sun_dust_shadow 阅读(396) 评论(0) 推荐(0) 编辑