Git Product home page Git Product logo

unityextensions's Introduction

UnityExtensions

Unity 通用扩展,包括编辑器、运行时的即用扩展、API 扩展。 注意,源代码使用了最新的 C# 特性,作者只能保证在 Unity 2018.3 及以上版本可以正常编译(注意切换到 .NET 4.x),如果你想在旧版本中使用,请自行修复编译问题。

  • 即用扩展

    • Unity 菜单:Assets->Create->Unity Extensions,你可能会用到 Layers 脚本自动生成功能。
    • Unity 菜单:Component->Unity Extensions,你可能会用到游戏对象池(Game Object Pool)和 FPS 显示功能。
    • Unity 菜单:Window->Unity Extensions,目前有一个强大的测量工具,设计者可能会喜欢——比如解谜游戏设计者 :-)
  • API 扩展

    • 编辑器:位于 UnityExtensions.Editor 命名空间。你可能会喜欢用于 IMGUI 编程的 Scopes 类型。还有一些实用工具,推荐你做个快速浏览,或许可以为你的开发节约不少时间。
    • 运行时(除特别说明外,以下内容都位于 UnityExtensions 命名空间)
      • Attributes:位于 RuntimeAPI/Attributes 目录,有一些实用的 Attribute 帮助你快速定制编辑器。
      • 基类型:位于 RuntimeAPI/BaseClasses 目录,你一定会喜欢 ScriptableAssetSingleton,可以帮你方便地做项目配置文件并在脚本中访问。
      • 扩展方法:位于 RuntimeAPI/Extensions 目录,在你的代码中只要简单的添加 using UnityExtensions 即可使用这些扩展方法。
      • 状态机:位于 RuntimeAPI/StateMachines 目录,包含一般状态机和专为 UI 设计的栈状态机,这是我能想到的最好用的状态机设计了。
      • 工具箱:位于 RuntimeAPI/Utilities 目录,对应脚本中的各种 Kit 类。
      • 其他补充类型:位于 RuntimeAPI/Supplements 目录,你可能会用到快速链表、树或者可创建实例的 Random 类型。

关于一些 API 的使用范例位于 UnityExtensions/Test 目录,如果你不清楚该怎么用的时候可以参考下。

Stack State Machine 栈状态机示例

欢迎提交 Bug 报告,共同修复、改进这个通用扩展库。我是独立游戏开发者,如果你想和我联系,你可以在这些 QQ 群里找到我:

- Unity 游戏编程:333763528
- Unity 图形技术:371834666
- 独立游戏开发:123020960

unityextensions's People

Contributors

yuyang9119 avatar

Stargazers

 avatar zxf avatar justsowoo avatar 邱昌杰 avatar Jie avatar  avatar End avatar Joe avatar WangLongBo avatar  avatar  avatar Zou Wei avatar  avatar  avatar 第五君 avatar  avatar  avatar yingnierxiao avatar  avatar  avatar 超级大蘑菇头 avatar Jack avatar

Watchers

Sergey avatar Bob avatar  avatar  avatar  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.