会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
菜之炼金术师
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
22
下一页
2024年4月1日
2-24. SlotUI 根据数据显示图片和数量
摘要: 把 Slot_Bag 改成 Button 当背包里的格子是空的时候,此时 Ineractable 需要为 false 我们不希望键盘可以控制 Slot_Bag 的选择,所以我们把 Button 的 Navigation 改为 None 另外把 Disabled Color 改成纯白色,alpha 改
阅读全文
posted @ 2024-04-01 06:56 hellozjf
阅读(47)
评论(0)
推荐(0)
2024年3月31日
2-23. 制作人物背包内的 UI
摘要: 创建 Player Bag 创建 Slot Holder 给 Slot Holder 添加 Grid Layout Group,Child Alignment 改为 Middle Center 然后再添加上节课的槽位预制体 添加头像和金币 项目相关代码 代码仓库:https://gitee.com/
阅读全文
posted @ 2024-03-31 10:52 hellozjf
阅读(43)
评论(0)
推荐(0)
2-22. 制作 Action Bar UI
摘要: 创建 UI 场景 添加 Action Bar 添加 Slot_Bag 添加 Horizontal Layout Group 添加背包图片 添加一个图片,放到 Action Bar 下面,给它添加 Layout Element 组件,勾选 Ignore Layout,然后调整它的位置 将 Slot_B
阅读全文
posted @ 2024-03-31 09:33 hellozjf
阅读(40)
评论(0)
推荐(0)
2024年3月29日
2-21. 实现背包检查和添加物品
摘要: 修改 InventoryManager 检查背包是否有空位 通过物品 ID 找到背包已有物品位置 在指定背包序号位置添加物品 添加物品到 Player 背包里 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdom.git 标签:202
阅读全文
posted @ 2024-03-29 07:21 hellozjf
阅读(66)
评论(0)
推荐(0)
2-19. 拾取物品基本逻辑
摘要: 创建 ItemPickup 脚本 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdom.git 标签:20240329_0638
阅读全文
posted @ 2024-03-29 06:39 hellozjf
阅读(38)
评论(0)
推荐(0)
2024年3月28日
2-18. 创建 InventoryManager 和 Item
摘要: 创建 Singleton 创建 InventoryManager 创建 ItemBase 接下来修改碰撞体大小 这样写是因为图片的锚点可能在底部,所以需要修改 coll.offset 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdo
阅读全文
posted @ 2024-03-28 20:46 hellozjf
阅读(75)
评论(0)
推荐(0)
2-17. 物品数据库填写规则
摘要: 首先把原来界面上没有绑定的字段都给完成 private void GetItemDetails() { itemDetailSection.MarkDirtyRepaint(); itemDetailSection.Q<IntegerField>("itemID").value = activeIt
阅读全文
posted @ 2024-03-28 10:06 hellozjf
阅读(59)
评论(0)
推荐(0)
2-16. 实现 ListView 添加删除同步信息功能
摘要: 本节目标 实现添加和删除按钮的功能 代码实现 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdom.git 标签:20240328_0913
阅读全文
posted @ 2024-03-28 10:06 hellozjf
阅读(30)
评论(0)
推荐(0)
2024年3月27日
2-15. 绑定 Editor Window 中的参数变量
摘要: 点击左侧的东西时同步右侧的内容 修改图片 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdom.git 标签:20240327_2028
阅读全文
posted @ 2024-03-27 20:30 hellozjf
阅读(29)
评论(0)
推荐(0)
2-14. 生成 ListView 列表
摘要: 修改 ItemEditor 加载 ItemDataList_SO 老师在调试的过程中发现,AssetDatabase.FindAssets 里面不需要加t: 加载 ItemDetails 测试 打开 Editor 窗口,然后就能看到有打印输出 查看示例文档 最终要的是实现 makeItem 和 bi
阅读全文
posted @ 2024-03-27 07:36 hellozjf
阅读(74)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
22
下一页