Skip to content

CSmartPropChoice

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

Kind: classSize: 56 bytes (0x38)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyFriendlyName Choice MVDataAnonymousNode MVDataOutlinerNameExpr m_Name

Relationships

Inherits from: CSmartPropParameter

Used by (1) as a field type

Inheritance tree
Relationship diagram (2 edges)
classDiagram
    CSmartPropParameter <|-- CSmartPropChoice
    CSmartPropChoice *-- CSmartPropChoiceOption
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

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

CSmartPropParameterCSmartPropChoice

OffsetFieldTypeFromAnnotations
0x8m_nElementIDint32CSmartPropParameterMPropertySuppressField MVDataUniqueMonotonicInt _editor/next_element_id
0x10m_NameCUtlStringMPropertyFriendlyName Choice Name
0x18m_DefaultOptionCUtlStringMPropertyAttributeChoiceName smartprop_choice_options
0x20m_OptionsCUtlVector< CSmartPropChoiceOption >MPropertyAutoExpandSelf
KV3 class defaults
{
	"_class": "CSmartPropChoice",
	"m_nElementID": -1,
	"m_Name": "",
	"m_DefaultOption": "",
	"m_Options":
	[
	]
}