You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Plugins/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs

40 lines
534 B
C#

using UnityEngine;
namespace NaughtyAttributes.Test
{
public enum TestEnum
{
None = 0,
B = 1 << 0,
C = 1 << 1,
D = 1 << 2,
E = 1 << 3,
F = 1 << 4,
All = ~0
}
public class EnumFlagsTest : MonoBehaviour
{
[EnumFlags]
public TestEnum flags0;
public EnumFlagsNest1 nest1;
}
[System.Serializable]
public class EnumFlagsNest1
{
[EnumFlags]
public TestEnum flags1;
public EnumFlagsNest2 nest2;
}
[System.Serializable]
public class EnumFlagsNest2
{
[EnumFlags]
public TestEnum flags2;
}
}