Giter VIP home page Giter VIP logo

xcskilleditor_unity's Introduction

XCSkillEditor 小草技能编辑器

简介

基于Flux扩展开发的UnityAct技能编辑器, 集成Mirror支持局域网联机,实现只通过配置就可以制作技能

基本思路是在编辑器时将技能的数据序列化,播放技能时是读取所有事件组成序列Sequence.然后根据事件的start帧触发事件,直到所有事件完成

Unity版本建议2020.3以上

声明

项目内的美术素材仅供演示使用, 禁止用于商业相关.

一些话

目前项目的代码和 Mirror高度绑定,耦合性比较高,不推荐移植...

由于只想做战斗系统,框架上就做得比较随意了。等有时间想学习下其他人的框架,完善下网络系统。

别人的优秀框架:YooAseet ,猫刀刀的MDDSkillEngine ,烟雨的et7 ,MotionFramework

对项目有什么建议的话,欢迎留言

引用

Mirror: 网络框架 ,优点是不用写服务器代码, 缺点只适用于小型项目,如果只想单机逻辑改起来有难度。

NaughtyAttributes: 是一个轻量级的编辑器扩展,强烈推荐,也推荐它的作者的开源项目

XiaoCaoTool: 受NaughtyAttributes启发,制作的XiaoCaoWindow编辑器扩展,快速搭建编辑器窗口,也包含部分开发小工具


展示

本github版本只包含技能编辑器核心部分,和视频的效果demo不同

效果demo展示: https://www.bilibili.com/video/BV18m4y1675a

pc试玩demo: https://share.weiyun.com/ik4O15hD)

使用

打开SkillEditor.scene

然后打开Flux:菜单Window/Flux/Open Editor

在Flux窗口选择一个技能就可以编辑了

编辑完成,就可以保存了.

保存:右上角的保存按钮 或者 在Scene里选中Sequence 右键/Xiaocao/保存选中Seq

一些默认设定

1.Sequence配置:

(1)一个角色有两个Animator, 是为了防止Flux编辑时乱连, 在Editor场景中使用editor

(2)技能id和额外的配置

2.技能特效都得是预制体,并且放于Resources目录下

一般放于Resources/SkillEffet下,当然你也可以修改成别的加载方式

加载代码可以看RunTimePoolManager的LoadResPoolObj()

3.技能坐标系设定

分玩家坐标系和世界坐标

玩家坐标系(默认): 生成物体时,以玩家的相对坐标系生成物体

世界坐标: 技能触发时刻的玩家坐标系,不受之后玩家移动的影响

对于玩家坐标系的物体,需要放在PlayerConstraint下

更改坐标系:

菜单Window/Flux/Open Inspector

然后选中一个Timeline

4.常用的Aseet位置

Resources/Charecter 角色

Resources/ResUsing 配置

其中SkiillKeyCodeSo是配置技能按键和图标和cd,没配置按键的技能则为被动技能

5.编辑器菜单功能

技能的excel配置(Luban): 菜单Tools/配置

使用的Luban,所以应该需要安装.net 4.0

收藏夹:菜单Tools/XiaoCao/收藏夹

动画预览窗口:菜单Tools/XiaoCao/动画预览窗口

xcskilleditor_unity's People

Contributors

smartgrass avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.