Learn Unity Roadmap/C# Essentials Structs Topic 16 of 30 in C# Essentials1 code example A struct is a value type that groups related data together. Structs are similar to classes but with key differences that affect performance and behavior. Unity uses structs extensively — Vector3, Quaternion, Color, and Rect are all structs. Read more on the blogMonoBehaviour vs C# Class vs Struct: Memory and PerformanceTutorials · Apr 2026 More in C# EssentialsData TypesControl FlowMethodsClasses & ObjectsConstructorsPropertiesAccess ModifiersInheritanceOperatorsLoopsArraysLists & CollectionsInterfacesAbstract ClassesEnumsStructsGenericsDelegates & EventsLambda ExpressionsLINQAsync & AwaitIntfloatboolcharIfelseelse ifswitchPrimitive Data Types PreviousEnums NextGenerics All 157 topics in the Learn Unity Roadmap