Skip to content
Aprius edited this page Oct 25, 2024 · 2 revisions
  • HasFlagUnsafe : Faster and not create garbage allocation to check if two enums are the same
[SerializeField] private EGameLoopType gameLoop;

...

if (gameLoop.HasFlagUnsafe(EGameLoopType.Update))
{
   // TODO
}
Clone this wiki locally