CSmartPropElement_Layout2DGrid
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 928 bytes (0x3a0)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes
Metadata: MPropertyDescription Generates set of child instances arranged in a regular grid layout. MPropertyFriendlyName Layout Grid
Relationships
Inherits from: CSmartPropElement_Group
Inheritance tree
CSmartPropElement
CSmartPropElement_Group
- CSmartPropElement_Layout2DGrid
Relationship diagram (4 edges)
classDiagram
CSmartPropElement <|-- CSmartPropElement_Group
CSmartPropElement_Group <|-- CSmartPropElement_Layout2DGrid
CSmartPropElement_Layout2DGrid *-- CSmartPropAttributeGridPlacementMode
CSmartPropElement_Layout2DGrid *-- CSmartPropAttributeGridOriginModeMemory layout
18 fields, 12 declared here and 6 inherited. Offsets are absolute from the object base on windows-x86_64.
CSmartPropElementCSmartPropElement_GroupCSmartPropElement_Layout2DGrid
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | m_nElementID | int32 | CSmartPropElement | MPropertySuppressField MVDataUniqueMonotonicInt _editor/next_element_id |
0x10 | m_bEnabled | CSmartPropAttributeBool | CSmartPropElement | MPropertyDescription Is this element enabled? If not enabled, this element will not be evaluted and will have no effect on the result. MPropertySortPriority 10 MVDataEnableKey |
0x50 | m_sLabel | CUtlString | CSmartPropElement | MPropertyDescription Optional text that will appear in the outliner to help organize Smart Prop elements and communicate their purpose to other users. MPropertyFriendlyName Label |
0x58 | m_SelectionCriteria | CUtlVector< CSmartPropSelectionCriteria* > | CSmartPropElement | MPropertyFriendlyName Selection Criteria MVDataPromoteField 2 |
0x70 | m_Modifiers | CUtlVector< CSmartPropModifier* > | CSmartPropElement | MPropertyFriendlyName Modifiers MVDataPromoteField 2 |
0x88 | m_Children | CUtlVector< CSmartPropElement* > | CSmartPropElement_Group | MPropertyDescription List of child elements which will appear if this element appears MPropertyFriendlyName Children MVDataPromoteField 1 |
0xa0 | m_flWidth | CSmartPropAttributeFloat | MPropertyAttributeRange biased 0 4096 MPropertyDescription Overall grid dimension along X axis. | |
0xe0 | m_flLength | CSmartPropAttributeFloat | MPropertyAttributeRange biased 0 4096 MPropertyDescription Overall grid dimension along Y axis. | |
0x120 | m_bVerticalLength | CSmartPropAttributeBool | MPropertyDescription Layout length vertically (Along Z axis instead of Y). | |
0x160 | m_GridArrangement | CSmartPropAttributeGridPlacementMode | MPropertyDescription ARRAY: Grid is a specific number of grid divisions. FILL: The boundary is filled with as many as will fit at the specified cell spacing. | |
0x1a0 | m_GridOriginMode | CSmartPropAttributeGridOriginMode | MPropertyDescription Specifies the overall grid origin location. Corner origin grids default to quadrant I, but may be expressed in others using negative values for Width and/or Length. | |
0x1e0 | m_nCountW | CSmartPropAttributeInt | MPropertyAttributeRange 1 64 MPropertyDescription Grid segments along width axis. MPropertySuppressExpr m_GridArrangement == FILL | |
0x220 | m_nCountL | CSmartPropAttributeInt | MPropertyAttributeRange 1 64 MPropertyDescription Grid segments along Length axis. MPropertySuppressExpr m_GridArrangement == FILL | |
0x260 | m_flSpacingWidth | CSmartPropAttributeFloat | MPropertyAttributeRange biased 0 1024 MPropertyDescription Minimum Width of filled grid cells. MPropertySuppressExpr m_GridArrangement == SEGMENT | |
0x2a0 | m_flSpacingLength | CSmartPropAttributeFloat | MPropertyAttributeRange biased 0 1024 MPropertyDescription Minimum Length of filled grid cells. MPropertySuppressExpr m_GridArrangement == SEGMENT | |
0x2e0 | m_bAlternateShift | CSmartPropAttributeBool | MPropertyDescription Shifts every other cell row and/or column. MPropertySuppressExpr m_GridArrangement == FILL | |
0x320 | m_flAlternateShiftWidth | CSmartPropAttributeFloat | MPropertyAttributeRange biased 0 1024 MPropertyDescription Vary cell shift in X. MPropertySuppressExpr m_GridArrangement == FILL || m_bAlternateShift == false | |
0x360 | m_flAlternateShiftLength | CSmartPropAttributeFloat | MPropertyAttributeRange biased 0 1024 MPropertyDescription Vary cell shift in Y. MPropertySuppressExpr m_GridArrangement == FILL || m_bAlternateShift == false |
KV3 class defaults
{
"_class": "CSmartPropElement_Layout2DGrid",
"m_nElementID": -1,
"m_bEnabled": true,
"m_sLabel": "",
"m_SelectionCriteria":
[
],
"m_Modifiers":
[
],
"m_Children":
[
],
"m_flWidth": 100.000000,
"m_flLength": 100.000000,
"m_bVerticalLength": false,
"m_GridArrangement": "SEGMENT",
"m_GridOriginMode": "CENTER",
"m_nCountW": 5,
"m_nCountL": 5,
"m_flSpacingWidth": 20.000000,
"m_flSpacingLength": 20.000000,
"m_bAlternateShift": false,
"m_flAlternateShiftWidth": 0.500000,
"m_flAlternateShiftLength": 0.000000
}