A game about forced loneliness, made by TACStudios
1using System.Runtime.InteropServices; 2 3namespace Unity.Collections 4{ 5 /// <summary> 6 /// Declares a union object where all members start at the same location in memory. 7 /// Allows for retrieving the bits for i.e. the floatValue. 8 /// </summary> 9 [StructLayout(LayoutKind.Explicit)] 10 internal struct UIntFloat 11 { 12 [FieldOffset(0)] public float floatValue; 13 14 [FieldOffset(0)] public uint intValue; 15 16 [FieldOffset(0)] public double doubleValue; 17 18 [FieldOffset(0)] public ulong longValue; 19 } 20}