随笔分类 -  Unity

1 2 3 4 5 ··· 9 下一页
Unity
摘要:https://www.youtube.com/watch?v=qwwjwb7XlUc using UnityEngine; [RequireComponent(typeof(BoxCollider))] public class OneWayBoxCollider : MonoBehaviour 阅读全文
posted @ 2023-02-27 11:14 三页菌 阅读(42) 评论(0) 推荐(0) 编辑
摘要:注意: 需要Unity2021以上版本 参考 https://forum.unity.com/threads/editor-callbacks-for-gameobject-creation-deletion-duplication-by-user-or-user-script.788792/ 示例 阅读全文
posted @ 2023-02-17 11:57 三页菌 阅读(216) 评论(0) 推荐(0) 编辑
摘要:物体拖拽最简实现 using UnityEngine; [RequireComponent(typeof(Collider))] public class CardTouch : MonoBehaviour { private void OnMouseDrag() { var mousePos = 阅读全文
posted @ 2023-02-03 11:09 三页菌 阅读(49) 评论(0) 推荐(0) 编辑
摘要:https://github.com/needle-tools/compilation-visualizer 工具2 Editor Iteration Profiler (EIP) 地址: https://forum.unity.com/threads/introducing-the-editor- 阅读全文
posted @ 2023-01-05 10:29 三页菌 阅读(187) 评论(0) 推荐(0) 编辑
摘要:1.代码示例 void LoadDll() { //Unity版本对于Load Dll的影响 //2019 就算在运行时修改了dll,也是无效的,拿的还是上一次的dll //2020 unity认为相同路径为上一次的dll //2021 没问题 //读取相对路径文件夹下的某种名称的 dll stri 阅读全文
posted @ 2023-01-04 13:58 三页菌 阅读(625) 评论(0) 推荐(0) 编辑
摘要:低调使用 https://github.com/tylearymf/UniHacker Unity中国 阅读全文
posted @ 2023-01-03 16:19 三页菌 阅读(155) 评论(0) 推荐(0) 编辑
摘要:box using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class DrawLine : MonoBehaviour { public Vector 阅读全文
posted @ 2022-09-23 15:42 三页菌 阅读(163) 评论(0) 推荐(0) 编辑
摘要:思路:在片元着色器中,处理像素p,针对p的上下左右四个像素采样(使用一个变量width来控制描边宽度,也就是处理上下左右多远的像素),若p本身是透明像素,则 若上下左右存在非透明像素,则当前像素p返回描边颜色 若上下左右都是透明像素,则返回透明即可 若 p 本身非透明像素,则返回本身颜色即可 Sha 阅读全文
posted @ 2022-09-13 10:38 三页菌 阅读(492) 评论(0) 推荐(0) 编辑
摘要:Minecraft地图生成原理剖析 https://zhuanlan.zhihu.com/p/43566129 https://zhuanlan.zhihu.com/p/43579344 https://zhuanlan.zhihu.com/p/43758301 完整生态圈生成 https://in 阅读全文
posted @ 2022-09-05 10:32 三页菌 阅读(1051) 评论(0) 推荐(0) 编辑
摘要:方案一:去除Animation将动画变成顶点动画 + GPU Instancing https://indienova.com/indie-game-development/using-the-gpu-to-achieve-large-scale-animation-character-render 阅读全文
posted @ 2022-08-31 09:51 三页菌 阅读(307) 评论(0) 推荐(0) 编辑
摘要:https://blog.unity.com/cn/technology/a-lightning-round-of-great-tips-for-2d-games 阅读全文
posted @ 2022-08-30 11:37 三页菌 阅读(111) 评论(0) 推荐(0) 编辑
摘要:RVO算法原理 https://blog.csdn.net/lsccsl/article/details/119732620 https://indienova.com/indie-game-development/vo-rvo-orca/ 一个优化RVO的算法 ORCA(Optimal Recip 阅读全文
posted @ 2022-08-24 10:05 三页菌 阅读(1574) 评论(0) 推荐(0) 编辑
摘要:说明 https://blog.csdn.net/final5788/article/details/100183528 当裁剪发生了查看什么被裁剪了 https://blog.csdn.net/ZhangDi2017/article/details/79168180 阅读全文
posted @ 2022-08-21 12:40 三页菌 阅读(288) 评论(0) 推荐(0) 编辑
摘要:using UnityEditor; using UnityEngine; [InitializeOnLoad] class UGUIOpenedPanelEditor { static readonly Texture2D TexturePanel; static UGUIOpenedPanelE 阅读全文
posted @ 2022-07-30 12:02 三页菌 阅读(143) 评论(0) 推荐(0) 编辑
摘要:如果使用的是2020及其之前的版本,只能使用unity老版本进行编辑器UI开发 https://blog.51cto.com/u_15296378/4969538?b=totalstatistichttps://www.cnblogs.com/xiaoyulong/p/10120565.html 如 阅读全文
posted @ 2022-07-22 10:43 三页菌 阅读(160) 评论(0) 推荐(1) 编辑
摘要:直接上代码 public class AssetImportTest : AssetPostprocessor { static void OnPostprocessAllAssets( string[] importedAssets, string[] deletedAssets, string[ 阅读全文
posted @ 2022-05-26 00:04 三页菌 阅读(253) 评论(0) 推荐(1) 编辑
摘要:入门视频: https://www.bilibili.com/video/BV1SP4y177YQ 《永劫无间》的动作与运动系统 https://www.bilibili.com/video/BV1QN411f7WJ?t=197 相关文章 https://zhuanlan.zhihu.com/p/3 阅读全文
posted @ 2022-04-26 11:58 三页菌 阅读(3515) 评论(1) 推荐(1) 编辑
摘要:非设置父节点,核心代码只需要3行 using System.Collections.Generic; using UnityEngine; public class Platform : MonoBehaviour { List<Player> players = new List<Player>( 阅读全文
posted @ 2022-03-31 10:46 三页菌 阅读(1266) 评论(0) 推荐(0) 编辑
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; public class LineCircleIntersect : MonoBehaviour { public Transform a; 阅读全文
posted @ 2022-01-14 15:06 三页菌 阅读(522) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 9 下一页
点击右上角即可分享
微信分享提示