上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页
摘要: 需求描述 我们需要实现一个类似英雄联盟中的技能CD遮罩,施放技能后,技能遮罩占满技能图标,随着时间推移,技能遮罩顺时针减少遮挡面积,CD结束时,遮罩应完全消失。 需求分析 由于每个时刻,都会有一条线从中心点射向上面那条边的中点,我们自然可以想到将遮罩面片分为8个三角形。 并且我们只需要按照给定的角度 阅读全文
posted @ 2024-02-22 22:46 dewxin 阅读(116) 评论(0) 推荐(0)
摘要: 原文地址 https://fgiesen.wordpress.com/2011/07/09/a-trip-through-the-graphics-pipeline-2011-index/ Welcome. This is the index page for a series of blog po 阅读全文
posted @ 2024-02-18 14:10 dewxin 阅读(42) 评论(0) 推荐(0)
摘要: 原文链接 https://learn.microsoft.com/en-us/windows/win32/direct3d9/efficiently-drawing-multiple-instances-of-geometry?redirectedfrom=MSDN Given a scene th 阅读全文
posted @ 2024-02-18 14:01 dewxin 阅读(46) 评论(0) 推荐(0)
摘要: 原文地址 https://thegamedev.guru/unity-performance/draw-call-optimization/#wait-whats-a-draw-call 目录什么是DrawCallBatches vs SetPassesCounting Unity Draw Cal 阅读全文
posted @ 2024-02-18 13:35 dewxin 阅读(218) 评论(0) 推荐(0)
摘要: PCIe 3.0 vs 2.0 – What’s the Difference? PCIe 3.0 传输带宽为 0.9GByte/s = 5Gbit/s * 128B/130B / (8bit/byte) https://www.technewstoday.com/pcie-3-0-vs-2-0/ 阅读全文
posted @ 2024-02-14 13:34 dewxin 阅读(306) 评论(0) 推荐(0)
摘要: 如果这里树枝和石头分开,那么出口5号洞。 如果1号洞口的线没出头,那么出口6号洞。 如果这里没有绿色,那么在2或3洞口。 有黑点 3号洞口。 如果有绿色,那么出口在1或4洞口。 这种1 线没被覆盖 这种4 阅读全文
posted @ 2023-12-09 19:45 dewxin 阅读(134) 评论(0) 推荐(0)
摘要: 简介 Unity是一个非常优秀的引擎,但其中有些设计在提供方便的同时也埋下了隐患,比如BroadcastMessage以及UnityEngine.Object中的隐式转换。 本文通过使用Harmony注入C#代码,达到检测隐式转换的效果,提供了替换Unity引擎C#代码的思路。 Harmony Ha 阅读全文
posted @ 2023-12-08 23:05 dewxin 阅读(507) 评论(0) 推荐(0)
摘要: https://gist.github.com/bikrone/666bb26fb0d4468df12c890ecc6c512e using UnityEditor; using UnityEngine; public sealed class ExampleClass : EditorWindow 阅读全文
posted @ 2023-12-01 22:39 dewxin 阅读(201) 评论(0) 推荐(0)
摘要: 文章转载自IMGUI crash course Unity's IMGUI system is quite simple but very powerful. The main parts are: The OnGUI callback. This callback is used to handl 阅读全文
posted @ 2023-11-24 13:20 dewxin 阅读(86) 评论(0) 推荐(0)
摘要: Unity在编辑器退出EditMode进入PlayMode之前,调用了一次Start和Update,然后提供了空的数据。 这个时候容易造成除以0的情况,但是Unity没有立刻抛出异常,而是继续执行,生成了一个无穷大的数值。 阅读全文
posted @ 2023-11-23 15:07 dewxin 阅读(1232) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页