GSmGpE6CwX2y9JjB25B8
We use cookies on this site to enhance your user experience

Textures and Decals

Textures and Decals

Aug 29 2019, 9:15 AM PST 10 min

All primitive Part|Parts in Roblox have six surfaces — even spheres and cylinders — and Texture|Textures or Decal|Decals can be applied to these surfaces.

Creating Textures or Decals

Both textures and decals can be added to a part as follows:

  1. In the Explorer, hover over the part and click the button.
  2. Select Texture or Decal from the context menu.

Texture (Image)

To choose an image for a texture or decal, click on its Texture property in the Properties window and select an image you’ve articles/game assets#assets-images|uploaded to Roblox.

Face (Surface)

Once created, a texture or decal can be applied to a specific surface by setting its FaceInstance/Face|Face property to Back, Bottom, Front, Left, Right, or Top.

Sizing / Position

The primary difference between textures and decals is how the image is sized and positioned on the part’s face:

  • The size of a Decal is dependent on the selected face’s size, meaning it will stretch across the entire surface.
Image Surface of 10×6 Studs Surface of 6×6 Studs
  • In contrast, Texture|Textures repeat both horizontally and vertically across the entire surface. The size of each “tile” is set via the StudsPerTileU and StudsPerTileV properties.
Image Surfaces of 8×6 Studs

Additionally, textures can be offset with the OffsetStudsU and OffsetStudsV properties, giving you more control over texture placement and even animation.

Image Surfaces of 8×6 Studs

Tint and Transparency

Both decals and textures support a color tint and transparency setting via their Color3 and Transparency properties respectively.

Image Color Tint of [255, 0, 0] Transparency of 0.5

Animating Textures

Like many other properties, texture properties like OffsetStudsU and StudsPerTileV can be tweened via TweenService, letting you achieve animated surfaces like this layered mist:

Tags:
  • texture
  • decal
  • image
  • surface