https://github.com/keroxp/unicommon
ゆにこもん - Unity Common Library
https://github.com/keroxp/unicommon
unity
Last synced: about 1 year ago
JSON representation
ゆにこもん - Unity Common Library
- Host: GitHub
- URL: https://github.com/keroxp/unicommon
- Owner: keroxp
- License: mit
- Created: 2017-12-04T04:47:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-21T12:10:35.000Z (over 8 years ago)
- Last Synced: 2024-04-23T19:24:52.586Z (about 2 years ago)
- Topics: unity
- Language: C#
- Homepage: https://scrapbox.io/keroxp-blog/UniCommon
- Size: 76.2 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UniCommon
[](https://badge.fury.io/js/unicommon)
---
Unityのユーティリティライブラリです。
[@keroxp](https://twitter.com/keroxp)が[黒羽のアリカ](http://hexat.studio/arika)を作ったときに開発したコードから依存関係のないものを取り出して再構築しました。
# Install
## npm/unity-package-syncerを使う方法
npmからインストールできます。
`npm i unicommon --save`
インストール後、[unity3d-package-syncer](https://github.com/rotorz/unity3d-package-syncer)を使ってnpmでこのプロジェクトをインポートします。
`mkdir -p Assets/Plugins/Packages`
`$(npm bin)/unity3d--sync`
これで`Assets/Plugins/Packages/UniCommon`フォルダにライブラリがインポートされます。依存関係として`UniRx`も同ディレクトリにインポートされます。
# Usage
ランタイムでは、以下のコードをどこかで実行するだけで準備は完了です。
```
using UniCommon;
public class YouApp : MonoBehaviour {
void Awake() {
UniCommon.Initialize();
}
}
```
# Contributing
バグ報告、修正依頼、その他便利機能などありましたらイシュー登録か、プルリクエストをください。コード規約などは特に設けていません。プルリクエストで修正します。