EnumFlagsAttribute Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An attribute that allows a particular field to be rendered as multi-selectable set of flags.
C++
public ref class EnumFlagsAttribute sealed : UnityEngine::PropertyAttribute
[System.AttributeUsage(System.AttributeTargets.Field)]
public sealed class EnumFlagsAttribute : UnityEngine.PropertyAttribute
[<System.AttributeUsage(System.AttributeTargets.Field)>]
type EnumFlagsAttribute = class
inherit PropertyAttribute
Public NotInheritable Class EnumFlagsAttribute
Inherits PropertyAttribute
- Inheritance
-
UnityEngine.PropertyAttributeEnumFlagsAttribute
- Attributes
From https://answers.unity.com/questions/486694/default-editor-enum-as-flags-.html
製品 | バージョン |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |