C# performance tips for Unity, part 2: structs and enums This is part two of a previous post on C# performance tips for Unity. If you haven’t seen Part 1, check it out for more background and context! In the last post, we looked at a number of surprises around memory allocation – such as heap trash being generated by foreach loops, array properties, or variadic functions. Throwaway objects on the