I am wondering what differences there are between UnsafeUtility.SizeOf and C#'s builtin sizeof.
One difference is that sizeof user-defined structs requires declaring the method unsafe.
Another potential one is that (iirc) sizeof inlines the size as a constant. I’d love to know what we can assume about UnsafeUtility.SizeOf in this regard. It’s easy to check the assembly and get one answer but that doesn’t give much info on expected behavior under different compilation environments (e.g. burst -v- dotnet) or compilation configurations (e.g. debug -v- release)