上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: 创建 Player Bag 创建 Slot Holder 给 Slot Holder 添加 Grid Layout Group,Child Alignment 改为 Middle Center 然后再添加上节课的槽位预制体 添加头像和金币 项目相关代码 代码仓库:https://gitee.com/ 阅读全文
posted @ 2024-03-31 10:52 hellozjf 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 创建 UI 场景 添加 Action Bar 添加 Slot_Bag 添加 Horizontal Layout Group 添加背包图片 添加一个图片,放到 Action Bar 下面,给它添加 Layout Element 组件,勾选 Ignore Layout,然后调整它的位置 将 Slot_B 阅读全文
posted @ 2024-03-31 09:33 hellozjf 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 修改 InventoryManager 检查背包是否有空位 通过物品 ID 找到背包已有物品位置 在指定背包序号位置添加物品 添加物品到 Player 背包里 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdom.git 标签:202 阅读全文
posted @ 2024-03-29 07:21 hellozjf 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 创建 ItemPickup 脚本 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdom.git 标签:20240329_0638 阅读全文
posted @ 2024-03-29 06:39 hellozjf 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 创建 Singleton 创建 InventoryManager 创建 ItemBase 接下来修改碰撞体大小 这样写是因为图片的锚点可能在底部,a56爆大奖在线娱乐需要修改 coll.offset 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdo 阅读全文
posted @ 2024-03-28 20:46 hellozjf 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 首先把原来界面上没有绑定的字段都给完成 private void GetItemDetails() { itemDetailSection.MarkDirtyRepaint(); itemDetailSection.Q<IntegerField>("itemID").value = activeIt 阅读全文
posted @ 2024-03-28 10:06 hellozjf 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 本节目标 实现添加和删除按钮的功能 代码实现 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdom.git 标签:20240328_0913 阅读全文
posted @ 2024-03-28 10:06 hellozjf 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 点击左侧的东西时同步右侧的内容 修改图片 项目相关代码 代码仓库:https://gitee.com/nbda1121440/DreamOfTheKingdom.git 标签:20240327_2028 阅读全文
posted @ 2024-03-27 20:30 hellozjf 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 修改 ItemEditor 加载 ItemDataList_SO 老师在调试的过程中发现,AssetDatabase.FindAssets 里面不需要加t: 加载 ItemDetails 测试 打开 Editor 窗口,然后就能看到有打印输出 查看示例文档 最终要的是实现 makeItem 和 bi 阅读全文
posted @ 2024-03-27 07:36 hellozjf 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 上次作业漏了 Row3 另外补充一下,如果想要显示 Dark Editor Theme 的话,就需要开启 Editor Extension Authoring 然后就能开启 Dark Editor Theme 了 创建 ItemRowTemplate 在 Assets / Editor / UI B 阅读全文
posted @ 2024-03-26 20:53 hellozjf 阅读(21) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页