Skip to content

CSmartPropVariable

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

Kind: classSize: 56 bytes (0x38)Alignment: unspecified (0xff sentinel)Module: smartpropsBinary: !GlobalTypes

Metadata: MVDataAnonymousNode MVDataNodeType 1 MVDataOutlinerNameExpr m_VariableName MVDataRoot

Relationships

Inherits from: CSmartPropParameter

Derived by (27)

Used by (1) as a field type

Inheritance tree
Relationship diagram (21 edges)
classDiagram
    CSmartPropParameter <|-- CSmartPropVariable
    CSmartPropVariable <|-- CSmartPropVariable_Angles
    CSmartPropVariable <|-- CSmartPropVariable_ApplyColorMode
    CSmartPropVariable <|-- CSmartPropVariable_Bool
    CSmartPropVariable <|-- CSmartPropVariable_ChoiceSelectionMode
    CSmartPropVariable <|-- CSmartPropVariable_Color
    CSmartPropVariable <|-- CSmartPropVariable_ColorSelectionMode
    CSmartPropVariable <|-- CSmartPropVariable_CoordinateSpace
    CSmartPropVariable <|-- CSmartPropVariable_DirectionVector
    CSmartPropVariable <|-- CSmartPropVariable_DistributionMode
    CSmartPropVariable <|-- CSmartPropVariable_Float
    CSmartPropVariable <|-- CSmartPropVariable_GridOriginMode
    CSmartPropVariable <|-- CSmartPropVariable_GridPlacementMode
    CSmartPropVariable <|-- CSmartPropVariable_Int
    CSmartPropVariable <|-- CSmartPropVariable_Material
    CSmartPropVariable <|-- CSmartPropVariable_MaterialGroup
    CSmartPropVariable <|-- CSmartPropVariable_Model
    CSmartPropVariable <|-- CSmartPropVariable_OrientationMode
    CSmartPropVariable <|-- CSmartPropVariable_PathPositions
    CSmartPropVariable <|-- CSmartPropVariable_PickMode
    CSmartPropVariable <|-- CSmartPropVariable_RadiusPlacementMode
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

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

CSmartPropParameterCSmartPropVariable

OffsetFieldTypeFromAnnotations
0x8m_nElementIDint32CSmartPropParameterMPropertySuppressField MVDataUniqueMonotonicInt _editor/next_element_id
0x10m_VariableNameCUtlString
0x18m_bExposeAsParameterboolMPropertyDescription If enabled, this value will be exposed as a parameter that can be set on the smart prop object in hammer. MPropertySortPriority -1
0x20m_DisplayNameCUtlStringMPropertyDescription Name of the parameter which will appear as a property in the Hammer object properties ui when selecting an object using this smart prop. MPropertyFriendlyName Parameter Display Name MPropertyReadonlyExpr m_bExposeAsParameter == false MPropertySortPriority -1
0x28m_HideExpressionCUtlStringMPropertyDescription Expression to evaluate to determine if this parameter should be hidden. Can be used to hide this parameter based on the state of other parameters. MPropertyReadonlyExpr m_bExposeAsParameter == false MPropertySortPriority -1
0x30m_ReadOnlyExpressionCUtlStringMPropertyDescription Expression to evaluate to detemrine if this parameter should be read-only. Can be used to make this parameter read-only based on the state of other parameters. MPropertyReadonlyExpr m_bExposeAsParameter == false MPropertySortPriority -1