Giter Site home page Giter Site logo

codeeditor's Introduction

CodeEditor

Lua Script Custom Editor & Lua BevTree Editor for unity

提供对Lua行为树的节点编辑。

bevTree

提供对Lua逻辑代码的节点编辑。

fcode

简易说明

  1. 用Unity的PackageManager将package.json导入

  2. 在Proto/Tools文件夹下执行protobuf.py的python脚本【没有python的话,请安装一个】,执行完成后会在Proto文件夹下多出一个Generated文件夹,其中包含有BevTree.proto和FCode.proto中的定义。【注意:Tools/bin/下包含有macOS和win的protoc,其他平台需要提供对应的protoc后再使用,而且目前来说没有听过Liunx的Unity编辑器支持,所以对于编辑器应该是够用了的】

  3. 修改BevTreeProperty.json中的ConditionsDir、ActionsDir、AIDir、AISnippetDir为适合自己工程的路径。

    • ConditionsDir表示所有Condition节点的Lua脚本所在路径;
    • ActionsDir表示所有Action节点的Lua脚本所在路径;
    • AIDir和AISnippetDir为所有的AI以及SnippetAI脚本文件所在路径,它们也是BevTree编辑器处理的文件。
  4. 修改FCodeProperty.json中的LogicDir、FCodeFunctionFile为适合自己工程的路径。

    • LogicDir表示所有FCode脚本文件所在路径,它们也是FCode编辑器处理的文件。
    • FCodeFunctionFile表示FCode脚本依赖的具体逻辑函数库所在路径,它决定了FCode编辑器用来够插入一些什么函数。只有在这个脚本中定义并符合一定规则的函数才能够被FCode编辑器正确解析和反解析。
  5. 在Unity的Window菜单栏中找到CodeEditor,其后分别有BevTree和FCode的window。打开后即可正常使用。

todo-list

  1. proto文件的外迁;

  2. 路径定义的外迁;

  3. 部分代码的todo标记;

codeeditor's People

Contributors

basstal avatar

Watchers

 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.