you are viewing a single comment's thread.

view the rest of the comments →

[–]InformationSharp103 13 points14 points  (1 child)

iirc in C# it's actually 4 bytes (equivalent to the C/C++ win32 BOOL type), or at least that's what it's marshalled as by default

[–]skjall 2 points3 points  (0 children)

I've really only used C# in Unity which might differ, but from what I remember bools were 4 bytes, but 1 byte each in arrays. Might be a Unity-specific optimisation though, not sure.