Roblox UtilitiesDevlHub Roblox Documentation

Class

Texture

Inherits
Decal › FaceInstance › Instance › Object
Memory category
GraphicsTexture

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

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#

OffsetStudsUfloatDetermines the offset in studs of the rendered texture's horizontal coordinate.ReadSafe
OffsetStudsVfloatDetermines the offset in studs of the rendered texture's vertical coordinate.ReadSafe
StudsPerTileUfloatSets the horizontal size, in studs, of the tiled image applied by the Texture.ReadSafe
StudsPerTileVfloatSets the vertical size, in studs, of the tiled image applied by the Texture.ReadSafe

OffsetStudsU: float#

ReadSafe

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

See also OffsetStudsV.

OffsetStudsV: float#

ReadSafe

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

See also OffsetStudsU.

StudsPerTileU: float#

ReadSafe

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: float#

ReadSafe

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.

Inherited members#

Inherited from Decal 21
Inherited from FaceInstance 1
Properties (1)

Face

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed