Class · inherits FaceInstance
Decal
Applies an image texture to a face of a parent BasePart.
About Decal
The Decal object applies an image texture to a face of a parent
BasePart. The affected face is dependent on the
Face property, and the size of the decal is dependent on
the size of the face.
The applied image texture is determined by its
ColorMapContent property. For details on how to
upload images, see
asset management.
For more information, review textures and decals. See also:
Texturefor repeating surface images.MeshPart.TextureContentto apply an image texture to aMeshPart.SurfaceGuito apply anImageLabelorImageButtonto an in-experience 3D object.
Properties 16
AutoLocalize
: booleanWhen set totrue, the decal's image asset is eligible for automatic localization capture.When set to
true, the decal's image asset is eligible for automatic localization through the Automatic Asset Capture system. TheLocalizationServiceuses this property to determine whether the decal'sColorMapContentshould be captured and potentially replaced with a localized version.This property only applies to non-PBR decals. If any PBR maps (
NormalMapContent,RoughnessMapContent, orMetalnessMapContent) are set, automatic localization capture is suppressed to avoid inconsistent rendering.ColorMap
: ContentIdNotReplicatedContent ID that determines the color and opacity of the surface.This property takes a content ID to determine the color and opacity of the surface. This texture is sometimes called the albedo texture.
LocalTransparencyModifier
: floatHiddenNotReplicatedActs as a multiplier for the decal'sTransparencyproperty. The effects are only visible to the local player.Acts as a multiplier for the decal's
Transparencyproperty. The effect is only visible to theLocalPlayerand will not replicate to the server.When this property is set to
1, theDecalwill be completely invisible regardless of its original transparency. When it is set to0, the decal's rendered transparency will match theTransparencyvalue.MetalnessMap
: ContentIdPluginHiddenContent ID that determines the metalness map of the surface.This property takes a content ID that determines the metalness map applied to the surface. A metalness map controls how metallic the surface appears at each point, blending between a dielectric (non-metal) and a metallic response to light. It defaults to an empty content, in which case no metalness map is applied.
Assigning a normal, roughness, or metalness map makes the
Decala physically based rendering (PBR) surface. To assign this map from aContentobject, useMetalnessMapContent.MetalnessMapContent
: ContentContentobject that determines the metalness map of the surface.This property takes a
Contentobject that determines the metalness map applied to the surface. A metalness map controls how metallic the surface appears at each point, blending between a dielectric (non-metal) and a metallic response to light. It defaults to an empty content, in which case no metalness map is applied.Assigning a normal, roughness, or metalness map makes the
Decala physically based rendering (PBR) surface.NormalMap
: ContentIdPluginHiddenContent ID that determines the normal map of the surface.This property takes a content ID that determines the normal map applied to the surface. A normal map perturbs the surface normals used in lighting calculations, adding the appearance of fine detail such as bumps and grooves without changing the underlying geometry. It defaults to an empty content, in which case no normal map is applied.
Assigning a normal, roughness, or metalness map makes the
Decala physically based rendering (PBR) surface. To assign this map from aContentobject, useNormalMapContent.NormalMapContent
: ContentContentobject that determines the normal map of the surface.This property takes a
Contentobject that determines the normal map applied to the surface. A normal map perturbs the surface normals used in lighting calculations, adding the appearance of fine detail such as bumps and grooves without changing the underlying geometry. It defaults to an empty content, in which case no normal map is applied.Assigning a normal, roughness, or metalness map makes the
Decala physically based rendering (PBR) surface.Rotation
: floatRotates the decal texture.This property controls the rotation angle of the decal texture in degrees. Rotation is applied to the UV coordinates in the clockwise direction.
RoughnessMap
: ContentIdPluginHiddenContent ID that determines the roughness map of the surface.This property takes a content ID that determines the roughness map applied to the surface. A roughness map controls how rough or smooth the surface appears at each point, which in turn determines how sharp or blurry its reflections are. It defaults to an empty content, in which case no roughness map is applied.
Assigning a normal, roughness, or metalness map makes the
Decala physically based rendering (PBR) surface. To assign this map from aContentobject, useRoughnessMapContent.RoughnessMapContent
: ContentContentobject that determines the roughness map of the surface.This property takes a
Contentobject that determines the roughness map applied to the surface. A roughness map controls how rough or smooth the surface appears at each point, which in turn determines how sharp or blurry its reflections are. It defaults to an empty content, in which case no roughness map is applied.Assigning a normal, roughness, or metalness map makes the
Decala physically based rendering (PBR) surface.Transparency
: floatDetermines the transparency of theDecal.Determines the transparency of the
Decalwith0being completely opaque and1completely transparent.Note that
LocalTransparencyModifieracts as a multiplier for this transparency level and should be used when the transparency of the decal is likely to be changed by another script.ZIndex
: intDetermines the rendering order when multiple decals are assigned the same face.This property determines the order in which decals on the same
Faceof aBasePartare rendered. Lower values are rendered first, so a decal with a higherZIndexrenders on top of those with a lowerZIndex.If you're unsure whether you'll need to layer a decal between two already-existing decals in the future, use larger separations between
ZIndexvalues such as10or100to ensure space for future decals between.
Decal also has every member of FaceInstance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.