Skip to content

CSmartPropVariable_ColorSelectionMode

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

Kind: classSize: 64 bytes (0x40)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Specifies the method by which a color selection is to be made. MPropertyFriendlyName Color Selection mode MVDataClassGroup Enumerator Types

Relationships

Inherits from: CSmartPropVariable

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

Memory layout

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

CSmartPropParameterCSmartPropVariableCSmartPropVariable_ColorSelectionMode

OffsetFieldTypeFromAnnotations
0x8m_nElementIDint32CSmartPropParameterMPropertySuppressField MVDataUniqueMonotonicInt _editor/next_element_id
0x10m_VariableNameCUtlStringCSmartPropVariable
0x18m_bExposeAsParameterboolCSmartPropVariableMPropertyDescription If enabled, this value will be exposed as a parameter that can be set on the smart prop object in hammer. MPropertySortPriority -1
0x20m_DisplayNameCUtlStringCSmartPropVariableMPropertyDescription 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_HideExpressionCUtlStringCSmartPropVariableMPropertyDescription 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_ReadOnlyExpressionCUtlStringCSmartPropVariableMPropertyDescription 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
0x38m_DefaultValueSmartPropColorSelectionMode_t
KV3 class defaults
{
	"_class": "CSmartPropVariable_ColorSelectionMode",
	"m_nElementID": -1,
	"m_VariableName": "",
	"m_bExposeAsParameter": false,
	"m_DisplayName": "",
	"m_HideExpression": "",
	"m_ReadOnlyExpression": "",
	"m_DefaultValue": "SPECIFIC_COLOR"
}