Skip to content

Commit 1be3bc9

Browse files
committed
Wrap layermask extension in macro
1 parent f450566 commit 1be3bc9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Runtime/UnityEngine.LayerMask/LayerMask.HasLayer.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// smidgens @ github
22

3+
#if !EXT_0_UNITYENGINE_LAYERMASK
4+
35
namespace Smidgenomics.Unity.Extensions
46
{
57
using UnityEngine;
@@ -18,4 +20,6 @@ public static bool HasLayer(this in LayerMask mask, in int layer)
1820
return mask == (mask | (1 << layer));
1921
}
2022
}
21-
}
23+
}
24+
25+
#endif

0 commit comments

Comments
 (0)