Giter VIP home page Giter VIP logo

unity-dialogueeditor's Introduction

Unity-DialogueEditor

适用于Unity项目的轻量对话编辑器

支持快速自定义多分支对话文本

支持数据存储与加载

对于它的使用您只需要提前在编辑器中设置好对话内容与分支对话的连接并保存数据,在需要加载对话的地方使用如下脚本进行加载

DialogueManager.Instance.LoadDialogue(string containerName, TextMeshProUGUI textMeshProUGUI, List<Button> buttons);

其中 containerName 既是资源名也是资源在Resources文件夹下的路径
textMeshProUGUI 是该节点的对话内容, buttons 是存储对话选项的按钮组件

测试场景中使用的是TextMeshPro这一新文本组件,当然我也对旧的Text组件进行了兼容:

DialogueManager.Instance.LoadDialogue(string containerName,Text mainText,List<Button> buttons)

如果它对您的项目起到了帮助,希望您能提出任何建议,仍在维护中.....

unity-dialogueeditor's People

Contributors

wyryyds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

smxm big-blank

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.