Class
Texture
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:
Decalfor non-repeating surface images.MeshPart.TextureContentto apply an image texture to aMeshPart.SurfaceGuito apply anImageLabelorImageButtonto an in-experience 3D object.
Properties 4#
OffsetStudsUfloat | Determines the offset in studs of the rendered texture's horizontal coordinate.ReadSafe |
OffsetStudsVfloat | Determines the offset in studs of the rendered texture's vertical coordinate.ReadSafe |
StudsPerTileUfloat | Sets the horizontal size, in studs, of the tiled image applied by the
Texture.ReadSafe |
StudsPerTileVfloat | Sets 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
Properties (21)
AutoLocalize, Color3, ColorMap, ColorMapContent, LocalTransparencyModifier, MetalnessMap, MetalnessMapContent, NormalMap, NormalMapContent, Rotation, RoughnessMap, RoughnessMapContent, Shiny, Specular, Texture, TextureContent, TexturePackContent, Transparency, UVOffset, UVScale, ZIndex
Inherited from FaceInstance 1
Properties (1)
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild