Awesome
Enum Flags
What
Requirement
- Unity 2018.3 (or Incremental Compiler)
Install
yarn add "umm/enum_flags#^1.0.0"
Usage
Mark as [Flags]
into enum
[System.Flags]
enum SomeType
{
Foo = 1 << 0,
Bar = 1 << 1,
Buz = 1 << 2,
Quz = 1 << 3,
}
Mark as [EnumFlags]
into serializable field
[SerializaField]
[EnumFlags]
private SomeType someType;
License
Copyright (c) 2019 Tetsuya Mori
Released under the MIT license, see LICENSE.txt