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

umm/enum_flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Handle enum as bit flag in Inspector

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages