Coder Social home page Coder Social logo

megumin.explosion's Introduction

这是什么?

这是一些常用扩展函数。是整个Megumin系列类库的最底层基础库。
还有一些UnityPackage,是unity用的扩展函数,和一些常用类。

UPM Package

Install via git URL

image

or add "com.megumin.explosion4unity": "https://github.com/KumoKyaku/Megumin.Explosion.git?path=Megumin.UnityPackage/Packages/megumin.explosion4unity" to Packages/manifest.json.

If you want to set a target version, uses the *.*.* release tag so you can specify a version like #2.1.0. For example https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#2.1.0.

当前版本目标框架为netstandard2.1

error CS1705: Assembly 'Megumin.Explosion' with identity 'Megumin.Explosion, Version=0.1.4.0, Culture=neutral, PublicKeyToken=83a041e0a8636db9' uses 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' which has a higher version than referenced assembly 'netstandard' with identity 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

Unity2021.2之前的版本请使用 vnetstandard2.0版本,后续不会在维护旧版本.
Add "com.megumin.explosion4unity": "https://github.com/KumoKyaku/Megumin.Explosion.git?path=Megumin.UnityPackage/Packages/megumin.explosion4unity#vnetstandard2.0" to Packages/manifest.json.

部分代码拆分到Common包

https://github.com/0x3f3f3f3f/Megumin.Common

功能列表

编辑器功能:

  • Package wizard,一键生成包目录结构.
    image-20210921185844394
  • Inspector导航,支持鼠标侧键切换最近选中对象。
  • 设置编辑器内置图标。
    SetIcon-min
  • Link,一些常用插件链接。
    image-20210921185911351
  • ScriptObjectDrawer,ScriptObject面版增加new和clone两个按钮。

脚本组件:

  • TargetPoint,可视化目标点。
  • 通用CD功能
    CDEffect
  • ColliderRenderer,运行时绘制碰撞体。
  • LabelRenderer,运行时显示一个标签,支持宏配置。
  • DebugMeshRenderer, 运行时绘制一个mesh.
  • UrlImage,支持网络图片,不用把图片资源放到项目里,方便demo制作。
  • GUIFPS,原生GUI显示帧率。

数据类型:

  • HexColor,十六进制颜色,支持字符串解析。
    image-20210921190022944
  • HSVColor
    image-20210921190056680
  • Pref,支持用户配置功能。
  • Overrideable,泛型可以重写字段,支持一个默认值和重写值。
    Overrideable
  • Enableable,泛型可快关字段.
    Enableable
  • iint,支持正负无穷的int类型。

特性:

  • Options2StringAttribute,将一个类里的string字段在Inspector中显示为下拉菜单。
    image-20211006123217496
  • PathAttribute,string字段快速路径序列化。
    image-20211006123348619
  • EditorButtonAttribute,将函数之间绘制在Inpector面板,支持参数。
  • Enum2StringAttribute,在Inpector将string绘制为Enum。
  • ReadOnlyInInspectorAttribute,在Inpector显示为只读。
  • HelpBoxAttribute,显示一个帮助Label。
  • GUIDAttribute,将一个string自动填入guid。
  • EnumQueueAttribute,一个像renderqueue那样的属性抽屉.
    CancelQueueEffect

依赖关系

megumin.explosion's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.