Skip to content

MaterialVariable_t

CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json

Kind: classSize: 16 bytes (0x10)Alignment: 8 bytesModule: particlesBinary: !GlobalTypes

Relationships

Inherits from: nothing; this is a root class.

Used by (4) as a field type

Inheritance tree
  • MaterialVariable_t
Relationship diagram (1 edges)
classDiagram
    MaterialVariable_t *-- ParticleAttributeIndex_t
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

3 fields, 3 declared here and 0 inherited. Offsets are absolute from the object base on windows-x86_64.

MaterialVariable_t

OffsetFieldTypeFromAnnotations
0x0m_strVariableCUtlStringMPropertyFriendlyName material variable
0x8m_nVariableFieldParticleAttributeIndex_tMPropertyAttributeChoiceName particlefield MPropertyFriendlyName particle field
0xcm_flScalefloat32MPropertyFriendlyName scale
KV3 class defaults
{
	"m_strVariable": "",
	"m_nVariableField": 18,
	"m_flScale": 1.000000
}