# Decal

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [FaceInstance](https://rapi.sleaze.dev/classes/FaceInstance.md), [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Subclasses: [Texture](https://rapi.sleaze.dev/classes/Texture.md)
- Memory category: GraphicsTexture
- HTML page: https://rapi.sleaze.dev/classes/Decal/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/Decal

Applies an image texture to a face of a parent [`BasePart`](https://rapi.sleaze.dev/classes/BasePart.md).

## Properties

### Color3

```luau
Decal.Color3: Color3 = Color3.new(1, 1, 1)
```

- Tags: Read capabilities: Basic

The [`Color3`](https://rapi.sleaze.dev/index/types/Color3.md) tint of the [`Decal`](https://rapi.sleaze.dev/classes/Decal.md).

### ColorMap

```luau
Decal.ColorMap: string = ""
```

- Tags: Not replicated, Read capabilities: Basic

Content ID that determines the color and opacity of the surface.

### ColorMapContent

```luau
Decal.ColorMapContent: Content
```

- Tags: Not replicated, Read capabilities: Basic

[`Content`](https://rapi.sleaze.dev/index/types/Content.md) object that determines the color and opacity of the surface.

### EmissiveMaskContent

```luau
Decal.EmissiveMaskContent: Content
```

- Tags: Write: Plugin security, Read capabilities: Basic

### EmissiveStrength

```luau
Decal.EmissiveStrength: number = 1
```

- Tags: Read capabilities: Basic

### EmissiveTint

```luau
Decal.EmissiveTint: Color3 = Color3.new(1, 1, 1)
```

- Tags: Read capabilities: Basic

### LocalizedTextureContent

```luau
Decal.LocalizedTextureContent: Content
```

- Tags: Not replicated, Read: Roblox script security, Write: Not accessible, Read capabilities: Basic

### LocalTransparencyModifier

```luau
Decal.LocalTransparencyModifier: number = 0
```

- Tags: Hidden, Not replicated, Read capabilities: Basic

Acts as a multiplier for the decal's [`Transparency`](https://rapi.sleaze.dev/classes/Decal.md) property. The effects are only visible to the local player.

### MetalnessMap

```luau
Decal.MetalnessMap: string = ""
```

- Tags: Hidden, Plugin security, Read capabilities: Basic

Content ID that determines the metalness map of the surface.

### MetalnessMapContent

```luau
Decal.MetalnessMapContent: Content
```

- Tags: Write: Plugin security, Read capabilities: Basic

[`Content`](https://rapi.sleaze.dev/index/types/Content.md) object that determines the metalness map of the surface.

### NormalMap

```luau
Decal.NormalMap: string = ""
```

- Tags: Hidden, Plugin security, Read capabilities: Basic

Content ID that determines the normal map of the surface.

### NormalMapContent

```luau
Decal.NormalMapContent: Content
```

- Tags: Write: Plugin security, Read capabilities: Basic

[`Content`](https://rapi.sleaze.dev/index/types/Content.md) object that determines the normal map of the surface.

### ResampleMode

```luau
Decal.ResampleMode: Enum.ResamplerMode = Enum.ResamplerMode.Default
```

- Tags: Read capabilities: Basic

### Rotation

```luau
Decal.Rotation: number = 0
```

- Tags: Read capabilities: Basic

Rotates the decal texture.

### RoughnessMap

```luau
Decal.RoughnessMap: string = ""
```

- Tags: Hidden, Plugin security, Read capabilities: Basic

Content ID that determines the roughness map of the surface.

### RoughnessMapContent

```luau
Decal.RoughnessMapContent: Content
```

- Tags: Write: Plugin security, Read capabilities: Basic

[`Content`](https://rapi.sleaze.dev/index/types/Content.md) object that determines the roughness map of the surface.

### Texture

```luau
Decal.Texture: string = ""
```

- Tags: Read capabilities: Basic

The content ID of the image to be applied by the [`Decal`](https://rapi.sleaze.dev/classes/Decal.md).

### TextureContent

```luau
Decal.TextureContent: Content
```

- Tags: Read capabilities: Basic

The texture content displayed by the [`Decal`](https://rapi.sleaze.dev/classes/Decal.md).

### TexturePack

```luau
Decal.TexturePack: string = ""
```

- Tags: Roblox engine security, Read capabilities: Basic

### TexturePackContent

```luau
Decal.TexturePackContent: Content
```

- Tags: Roblox engine security, Read capabilities: Basic

Engine-managed [`Content`](https://rapi.sleaze.dev/index/types/Content.md) that stores the compressed runtime texture-pack data for PBR decals.

### TexturePackMetadata

```luau
Decal.TexturePackMetadata: string = ""
```

- Tags: Hidden, Not scriptable, Roblox engine security, Read capabilities: Basic

### Transparency

```luau
Decal.Transparency: number = 0
```

- Tags: Read capabilities: Basic

Determines the transparency of the [`Decal`](https://rapi.sleaze.dev/classes/Decal.md).

### UVOffset

```luau
Decal.UVOffset: Vector2 = Vector2.zero
```

- Tags: Read capabilities: Basic

Shifts the UV coordinates by adding an offset before texture mapping.

### UVScale

```luau
Decal.UVScale: Vector2 = Vector2.one
```

- Tags: Read capabilities: Basic

Stretches or compresses the UV coordinates by multiplying a scale factor.

### ZIndex

```luau
Decal.ZIndex: number = 1
```

- Tags: Read capabilities: Basic

Determines the rendering order when multiple decals are assigned the same face.

### Shiny

```luau
Decal.Shiny: number = 20
```

- Tags: Deprecated, Not replicated, Read capabilities: Basic, Load only

**Deprecated:** This non-functional property is deprecated and should not be used in new work.

Deprecated property that previously set the shininess of the decal.

### Specular

```luau
Decal.Specular: number = 0
```

- Tags: Deprecated, Not replicated, Read capabilities: Basic, Load only

**Deprecated:** This property no longer functions correctly and is deprecated. It should not be used in new work.

Deprecated property that previously set the specularity of the decal.

### AutoLocalize

```luau
Decal.AutoLocalize: boolean = true
```

- Tags: Read capabilities: Basic

When set to `true`, the decal's image asset is eligible for automatic localization capture.

## Inherited members

- From [FaceInstance](https://rapi.sleaze.dev/classes/FaceInstance.md): `Face`
- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
