Skip to content

Class · inherits Decal

Texture

Official docs ↗

Applies a repeating image texture to the face of a parent BasePart.

About Texture

A Texture object applies a repeating image texture to the face of a parent BasePart. The affected face is dependent on the Face property. Unlike Decals, the texture applied by a Texture will repeat when the parent BasePart is resized, with the size of the repeating textures determined by the StudsPerTileU and StudsPerTileV properties.

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:

Properties 4

  • OffsetStudsU: floatDetermines the offset in studs of the rendered texture's horizontal coordinate.

    This property determines how far the rendered texture is offset on the horizontal axis, in studs, as visualized here.

    See also OffsetStudsV.

  • OffsetStudsV: floatDetermines the offset in studs of the rendered texture's vertical coordinate.

    This property determines how far the rendered texture is offset on the vertical axis, in studs, as visualized here.

    See also OffsetStudsU.

  • StudsPerTileU: floatSets the horizontal size, in studs, of the tiled image applied by the Texture.

    Sets the horizontal size, in studs, of the tiled image applied by the Texture.

    Larger values for this property will lead to the Texture appearing larger, and repeating less frequently. Unlike with Decals, the size of the repeated image is unaffected by the dimensions of the BasePart. Instead, resizing the BasePart only increases the number of times the texture repeats.

    Note that this property can be set to very low values, but not zero. Also note that the horizontal/vertical distinction is relative to the parent BasePart axis; therefore the Texture will rotate along with the BasePart.

    See also StudsPerTileV.

  • StudsPerTileV: floatSets the vertical size, in studs, of the tiled image applied by the Texture.

    Sets the vertical size, in studs, of the tiled image applied by the Texture.

    Larger values for this property will lead to the Texture appearing larger, and repeating less frequently. Unlike with Decals, the size of the repeated image is unaffected by the dimensions of the BasePart. Instead, resizing the BasePart only increases the number of times the texture repeats.

    Note that this property can be set to very low values, but not zero. Also note that the horizontal/vertical distinction is relative to the parent BasePart axis; therefore the Texture will rotate along with the BasePart.

    See also StudsPerTileU.

Texture also has every member of Decal. 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.