# Looking for better way to play with Bitmask

**URL:** <https://forums.unrealengine.com/t/looking-for-better-way-to-play-with-bitmask/1168679>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint\
**Created:** [May 17, 2023, 12:41pm UTC](https://forums.unrealengine.com/t/looking-for-better-way-to-play-with-bitmask/1168679 "2023-05-17T12:41:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gardian206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gardian206](https://forums.unrealengine.com/u/gardian206)\
**Post date:** [June 10, 2023, 6:17am UTC](https://forums.unrealengine.com/t/looking-for-better-way-to-play-with-bitmask/1168679/2 "2023-06-10T06:17:48Z")

</div>

in blueprints themselves you create a int type variable either byte(uint8), or Integer(int32) then in the details with the variable selected

 ![bitmaskInt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/a/4aa96a1a0ff9c7f989c40292a7516f240c812453.png)  
you still need to do your bitwise operations on the variable as expected

for C++ doesn’t require any inheritance it is a subset of UENUM  
you can look here  
[https://forums.unrealengine.com/t/bitmask-warning-spam/1194637](https://forums.unrealengine.com/t/bitmask-warning-spam/1194637)  
for a method that works to declare them, but I am getting a bunch of warning spam even though I looked through quite a few guides, and it works as it should just throws up numerous Warnings.

---

_[View the full topic](https://forums.unrealengine.com/t/looking-for-better-way-to-play-with-bitmask/1168679)._
