Reference API Roblox

Engine API

Website

Related

Reference API Roblox

Texture

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

Member index 4

HistoryMember
553OffsetStudsU: float
553OffsetStudsV: float
553StudsPerTileU: float
553StudsPerTileV: float
inherited from Decal
553Color3: Color3
690ColorMap: ContentId
690ColorMapContent: Content
683MetalnessMapContent: Content
683NormalMapContent: Content
683RoughnessMapContent: Content
553Shiny: float
553Specular: float
645Texture: ContentId
664TextureContent: Content
686TexturePack: ContentId
553Transparency: float
683UVOffset: Vector2
683UVScale: Vector2
553ZIndex: int
inherited from FaceInstance
553Face: NormalId
inherited from Instance
553Archivable: bool
670Capabilities: SecurityCapabilities
553Name: string
553Parent: Instance
670Sandboxed: bool
680UniqueId: UniqueId
576AddTag(tag: string): null
573ClearAllChildren(): null
462Clone(): Instance
573Destroy(): null
486FindFirstAncestor(name: string): Instance
486FindFirstAncestorOfClass(className: string): Instance
486FindFirstAncestorWhichIsA(className: string): Instance
486FindFirstChild(name: string, recursive: bool = false): Instance
486FindFirstChildOfClass(className: string): Instance
486FindFirstChildWhichIsA(className: string, recursive: bool = false): Instance
486FindFirstDescendant(name: string): Instance
563GetActor(): Actor
486GetAttribute(attribute: string): Variant
462GetAttributeChangedSignal(attribute: string): RBXScriptSignal
631GetAttributes(): Dictionary
648GetChildren(): Instances
462GetDebugId(scopeLength: int = 4): string
486GetDescendants(): Array
486GetFullName(): string
691GetPredictionMode(): PredictionMode
641GetStyled(name: string): Variant
657GetStyledPropertyChangedSignal(property: string): RBXScriptSignal
576GetTags(): Array
576HasTag(tag: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
690IsPredicted(): bool
664IsPropertyModified(property: string): bool
698QueryDescendants(selector: string): Instances
573Remove(): null
576RemoveTag(tag: string): null
664ResetPropertyToDefault(property: string): null
573SetAttribute(attribute: string, value: Variant): null
690SetPredictionMode(mode: PredictionMode): null
462WaitForChild(childName: string, timeOut: double): Instance
648children(): Instances
553clone(): Instance
573destroy(): null
553findFirstChild(name: string, recursive: bool = false): Instance
648getChildren(): Instances
553isDescendantOf(ancestor: Instance): bool
573remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
657StyledPropertiesChanged()
553childAdded(child: Instance)
inherited from Object
647ClassName: string
647className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
650isA(className: string): bool
647Changed(property: string)

Description

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:

History 17

Members 4

OffsetStudsU

TypeDefault
float0

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

See also OffsetStudsV.

History 4

OffsetStudsV

TypeDefault
float0

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

See also OffsetStudsU.

History 4

StudsPerTileU

TypeDefault
float2

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.

History 4

StudsPerTileV

TypeDefault
float2

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.

History 4

Settings