上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 50 下一页
摘要: 2D private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.GetComponent<AttackBox>()) { hitPos = other.bounds.ClosestPoint(transform.po 阅读全文
posted @ 2020-04-22 17:21 三页菌 阅读(2556) 评论(0) 推荐(0)
摘要: 弄了个开源项目 https://yogioh123456.github.io/UnityShaderGraphChineseAPI/articles/ShaderGraph.html Unity Shader Graph中英文对照API 采用DocFX对MarkDown文档进行生成 使用技术来源: 阅读全文
posted @ 2020-04-19 10:57 三页菌 阅读(266) 评论(0) 推荐(0)
摘要: https://www.textures.com/download/pbr0159/133194?q=lava 阅读全文
posted @ 2020-04-18 09:28 三页菌 阅读(199) 评论(0) 推荐(0)
摘要: 在Editor下监听按键有以下几种方式: 1.自定义菜单栏功能: 比如F5键暂停编辑器 using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; public c 阅读全文
posted @ 2020-04-17 11:38 三页菌 阅读(2526) 评论(0) 推荐(0)
摘要: 链接:https://www.notion.so/Unity-f79bb1d4ccfc483fbd8f8eb859ae55fe 视频链接:https://www.bilibili.com/video/BV1aJ411t7N6 阅读全文
posted @ 2020-04-12 19:29 三页菌 阅读(259) 评论(0) 推荐(0)
摘要: 工程下载:https://files.cnblogs.com/files/sanyejun/ComboAttack.7z 全网也没查到比较好的资料,自己弄了个 一共是3个脚本 先上图 黑色为触发条件 绿色和红色为2个动画Behaviour脚本 注意:attack01 attack02 attack0 阅读全文
posted @ 2020-04-12 16:18 三页菌 阅读(4106) 评论(1) 推荐(0)
摘要: public bool IsInLayerMask(GameObject obj, LayerMask layerMask) { // 根据Layer数值进行移位获得用于运算的Mask值 int objLayerMask = 1 << obj.layer; return (layerMask.val 阅读全文
posted @ 2020-04-11 20:15 三页菌 阅读(2755) 评论(0) 推荐(1)
摘要: 先上图 上图为一个简单的怪物状态机,是通过代码自动生成连线的,但是里面的动画需要自己设置 那么如何做到 官方参考:https://docs.unity3d.com/ScriptReference/Animations.AnimatorController.html 民间参考:https://www. 阅读全文
posted @ 2020-04-03 10:08 三页菌 阅读(1668) 评论(0) 推荐(0)
摘要: 插件下载:https://files-cdn.cnblogs.com/files/sanyejun/BehaviorDesigner1.6.4.7z 参考资料:https://blog.csdn.net/lyh916/article/details/50564115 相关视频教程:https://w 阅读全文
posted @ 2020-03-30 17:14 三页菌 阅读(1032) 评论(0) 推荐(0)
摘要: 来自油管大神:https://www.youtube.com/watch?v=QPiZSTEuZnw&lc=z22ehdxp5wmrg1jkvacdp431qmalafpquvm0apfrjrxw03c010c&feature=em-comments 核心代码 using System.Collec 阅读全文
posted @ 2020-03-26 21:33 三页菌 阅读(3718) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 50 下一页