1 Star 3 Fork 1

烟雨迷离半世殇/SkillEditorBasedOnSlate

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

SkillEditorBasedOnSlate

基于ParadoxNotion Slate的帧同步技能编辑器,博客链接:ParadoxNotion-Slate学习笔记与拓展计划

本项目只作为一个最小使用案例,工业级的使用案例请参见:基于ET框架致敬LOL的Moba游戏,包含完整的客户端与服务端交互,热更新,基于双端行为树的技能系统,更多精彩等你发现!

项目使用了两款插件,请自行购买并导入Assets/Plugins/目录中

功能列表

  • 基于帧同步的技能系统运行时
  • 重写Slate创建Group的编辑器界面代码
  • 部分Action库
  • 技能数据的编辑与导出
  • 测试用例

使用说明

在Scene场景新建一个游戏物体,并添加图中组件

image

主要功能为编辑数据和导出数据

image

新建一个Skil Group

image

新建Action

image

选中Action即可在Inspector预览和编辑数据

image

点击导出数据

image

在Scene场景新建一个游戏物体,并为其添加图中组件

image

运行游戏,回车键为重新执行技能,空格键为暂停/恢复技能运行

更改内容

下列更改内容需要您手动将链接中的文件替换到Slate插件中

由于我们需要用Odin在Inpsector绘制内容,所以需要更改Slate自带的CustomEditor绘制:

由于我们为了分离数据运行时逻辑,采用了较为复杂的引用和层级关系,所以需要借助Odin的序列化,也就需要更改Slate ActionClip的继承对象为SerializedMonoBehaviour:

出于个人喜好和可拓展性的考虑,重写了CutSceneEditor部分代码:

现在支持从搜索栏左侧的加号按钮新增Group

image

image

MIT License Copyright (c) 2021 NKG丶MadLife Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description expand collapse
C#
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/NKG_admin/SkillEditorBasedOnSlate.git
git@gitee.com:NKG_admin/SkillEditorBasedOnSlate.git
NKG_admin
SkillEditorBasedOnSlate
SkillEditorBasedOnSlate
main

Search

344bd9b3 5694891 D2dac590 5694891