# @umm/environment_setting

> Provide setting for environment

Latest version **1.1.5** (published 2017-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @umm/environment_setting
pnpm add @umm/environment_setting
yarn add @umm/environment_setting
bun add @umm/environment_setting
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2017-10-20 |
| First published | 2017-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Tetsuya Mori |
| Maintainers | takyama, risacankidsstar, mkaya, hanage, fakestarbaby, monry |

## Links

- npm: https://www.npmjs.com/package/@umm/environment_setting
- Repository: https://github.com/umm-projects/environment_setting
- Issues: https://github.com/umm-projects/environment_setting/issues
- npm.io page: https://npm.io/package/@umm/environment_setting

## Dependencies (5)

- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [glob](https://npm.io/package/glob.md) ^7.1.2
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.1
- [@umm/setting_core](https://npm.io/package/@umm/setting_core.md) ^1.1.0

## Recent versions

- 1.1.5 (latest) — 2017-10-20
- 1.1.4 — 2017-09-11
- 1.0.0 — 2017-09-01

## README

# What?

* 開発環境に関わる設定ファイルを提供します。
* このクラス単体では何も提供しませんが、`partial` クラスとして定義しているので、他のモジュールで設定を追加することができます。
* このクラスは Unity のメニューとして `Assets` &gt; `Create` &gt; `Setting` &gt; `EnvironmentSetting` を提供するだけです。

# Why?

* 環境依存な項目を簡便に取り扱える設定クラスが欲しかったので作りました。

# Install

```shell
$ npm install github:umm-projects/environment_setting.git
```

# Usage

```csharp
using UnityEngine;

namespace UnityModule.Settings {

    public partial class EnvironmentSetting : Setting<EnvironmentSetting> {

        [SerializeField]
        private bool hoge = true;

        public bool Hoge {
            get {
                return this.hoge;
            }
            set {
                this.hoge = value;
            }
        }

    }

}
```

* 追加したい設定フィールドを実装したクラスとして `UnityModule.Settings.EnvironmentSetting` を実装します。
    * クラス名は固定です。
* このクラスによって提供される `Assets/Resources/Settings/EnvironmentSetting.asset` は VCS 管理しないようにしましょう。
    * VCS から除外する場合は適切にデフォルト値を設定しておかないと実機実行時に問題になることがあるので注意しましょう。

# License

Copyright (c) 2017 Tetsuya Mori

Released under the MIT license, see [LICENSE.txt](LICENSE.txt)

---
_Source: https://npm.io/package/@umm/environment_setting · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
