1.0.1 • Published 7 years ago
@umm/sortinglayername_attribute v1.0.1
What?
- プルダウンから SortingLayer を選択可能にする string フィールド向けの Attribute を提供します。
Why?
- 頻繁に必要とする割には、実装がちょっと面倒だったので共通化しました。
Install
$ npm install github:umm-projects/sortinglayername_attribute.git
Usage
using UnityEngine;
using UnityModule;
public class Sample : MonoBehaviour {
[SortingLayerName]
public string SortingLayerName;
}
- string 型の Serializable なフィールドに対して
[SortingLayerName]
属性をセットするだけです。
License
Copyright (c) 2017 Tetsuya Mori
Released under the MIT license, see LICENSE.txt