Class · inherits Decal
Texture
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:
Decalfor non-repeating surface images.MeshPart.TextureContentto apply an image texture to aMeshPart.SurfaceGuito apply anImageLabelorImageButtonto an in-experience 3D object.
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 theTexture.Sets the horizontal size, in studs, of the tiled image applied by the
Texture.Larger values for this property will lead to the
Textureappearing larger, and repeating less frequently. Unlike withDecals, the size of the repeated image is unaffected by the dimensions of theBasePart. Instead, resizing theBasePartonly 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
BasePartaxis; therefore theTexturewill rotate along with theBasePart.See also
StudsPerTileV.StudsPerTileV
: floatSets the vertical size, in studs, of the tiled image applied by theTexture.Sets the vertical size, in studs, of the tiled image applied by the
Texture.Larger values for this property will lead to the
Textureappearing larger, and repeating less frequently. Unlike withDecals, the size of the repeated image is unaffected by the dimensions of theBasePart. Instead, resizing theBasePartonly 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
BasePartaxis; therefore theTexturewill rotate along with theBasePart.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.