I have a bit of a conundrum (pun intended)… In Javascript and Actionscript 3 there is the >>> operator (a bitwise zero-fill right shift). In C# this does not exist. Is there a built-in Unity function that does the equivalent?
AS3 example:
y = (u >>> 8);
The closest solution I could find online was to create and use this function, but I need a second pair of eyes to review if it’s actually the same thing:
y = UnsignedRightShift(u, 8);
static int UnsignedRightShift(int s, int i) {
return (int)((uint)s >> i);
}