Loading video...

Video Failed to Load

Go Home

You can ๐˜€๐—ฒ๐—น๐—ฒ๐—ฐ๐˜ ๐—บ๐˜‚๐—น๐˜๐—ถ๐—ฝ๐—น๐—ฒ ๐—˜๐—ป๐˜‚๐—บ values in ๐—จ๐—ป๐—ถ๐˜๐˜† ๐—ถ๐—ป๐˜€๐—ฝ๐—ฒ๐—ฐ๐˜๐—ผ๐—ฟ by using [๐—™๐—น๐—ฎ๐—ด๐˜€] attribute ๐Ÿ™‚๐Ÿ‘ #UnityTips #Unity2d #Unity3d #gamedev #gamedevelopment #coding #csharp #IndieGameDev

82,425 views โ€ข 3 years ago โ€ขvia X (Twitter)

6 Comments

MrX's profile picture
MrX3 years ago

I gave up on these after I too many times I coouldn't remember how to do the correct bitwise comparisons(since I used them maybe once a year) and just used an array of enums instead xD. Though nowadays probably very easy with chatgpt.

Rechronicle's profile picture
Rechronicle3 years ago

didn't know that it is possible ๐Ÿ˜ณ๐Ÿ˜ณ thx for sharing!

Tulu's profile picture
Tulu3 years ago

I didn't understand what the use case for that is. What am I missing?

Sunny Valley Studio's profile picture
Sunny Valley Studio3 years ago

In my case I have a farm game and I am able to check multiple enums (Summer + Spring) as the growth season for different crops. It is just to give a game designer a better UX when tweaking those values if working in a team.

Once Upon a Rogue's Tale | OUT NOW ๐ŸŽ‰'s profile picture
Once Upon a Rogue's Tale | OUT NOW ๐ŸŽ‰3 years ago

Oh wow, didn't know that. Thank you!

de_CLAS Softworks's profile picture
de_CLAS Softworks3 years ago

ooh, handy!

Related Videos