Skip to content

CSmartPropOperation_MaterialTint

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

Kind: classSize: 360 bytes (0x168)Alignment: 8 bytesModule: smartpropsBinary: !GlobalTypes

Metadata: MPropertyDescription Set a color tint to apply to a specific material. MPropertyFriendlyName Material Color Tint MVDataClassGroup Color

Relationships

Inherits from: CSmartPropOperation

Inheritance tree
Relationship diagram (3 edges)
classDiagram
    CSmartPropModifier <|-- CSmartPropOperation
    CSmartPropOperation <|-- CSmartPropOperation_MaterialTint
    CSmartPropOperation_MaterialTint *-- CSmartPropAttributeColorSelectionMode
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.

CSmartPropModifierCSmartPropOperation_MaterialTint

OffsetFieldTypeFromAnnotations
0x8m_bEnabledCSmartPropAttributeBoolCSmartPropModifierMVDataEnableKey
0x50m_MaterialCSmartPropAttributeMaterialNameMPropertyAttributeEditor SmartPropAttributeEditor(MaterialInSmartProp) MPropertyDescription Material to which color tint is to be applied. MPropertyFriendlyName Material
0x90m_SelectionModeCSmartPropAttributeColorSelectionModeMPropertyDescription Specifies how the color is to be specified. MPropertyFriendlyName Selection Mode
0xd0m_ColorCSmartPropAttributeColorMPropertyDescription Color to be applied if this choice is selected. MPropertySuppressExpr m_SelectionMode != SPECIFIC_COLOR
0x110m_GradientCColorGradientMPropertyDescription Defines a color gradient from which a color can be selected based on the selection mode. MPropertyFriendlyName Color Gradient MPropertySuppressExpr m_SelectionMode == SPECIFIC_COLOR
0x128m_ColorPositionCSmartPropAttributeFloatMPropertyDescription [ 0, 1 ] Value specifying the location on the gradient to pick the color from. MPropertyFriendlyName Color Position MPropertySuppressExpr m_SelectionMode != GRADIENT_LOCATION
KV3 class defaults
{
	"_class": "CSmartPropOperation_MaterialTint",
	"m_bEnabled": true,
	"m_Material": "",
	"m_SelectionMode": "SPECIFIC_COLOR",
	"m_Color":
	[
		255,
		255,
		255
	],
	"m_Gradient":
	{
		"m_Stops":
		[
		]
	},
	"m_ColorPosition": 0.000000
}