# Shape.materialId

Returns the material id of a shape.

**Kind:** Member

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Userdata/Shape.md#materialid)

### Get

Returns the material id of a shape.

**Returns:**

| Type | Description |
| --- | --- |
| integer | The shape's material id. |
