Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Latest commit

 

History

History
45 lines (30 loc) · 644 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 644 Bytes

Enum Flags

What

image

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