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
731OffsetStudsU: float
731OffsetStudsV: float
731StudsPerTileU: float
731StudsPerTileV: float
inherited from Decal
731AutoLocalize: bool
731Color3: Color3
690ColorMap: ContentId
731ColorMapContent: Content
731MetalnessMapContent: Content
731NormalMapContent: Content
731Rotation: float
731RoughnessMapContent: Content
731Shiny: float
731Specular: float
645Texture: ContentId
731TextureContent: Content
686TexturePack: ContentId
731TexturePackContent: Content
731Transparency: float
731UVOffset: Vector2
731UVScale: Vector2
731ZIndex: int
inherited from FaceInstance
731Face: NormalId
inherited from Instance
731Archivable: bool
731Capabilities: SecurityCapabilities
731IsInSandbox: bool
731Name: string
731Parent: Instance
731PredictionMode: PredictionMode
731Sandboxed: bool
731UniqueId: 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
707GetDescendants(): Instances
486GetFullName(): string
706GetStyled(name: string, selector: string?): Variant
657GetStyledPropertyChangedSignal(property: string): RBXScriptSignal
576GetTags(): Array
576HasTag(tag: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): 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
462WaitForChild(childName: string, timeOut: double): Instance
731children(): Instances
731clone(): Instance
731destroy(): null
731findFirstChild(name: string, recursive: bool = false): Instance
731getChildren(): Instances
731isDescendantOf(ancestor: Instance): bool
731remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
657StyledPropertiesChanged()
731childAdded(child: Instance)
inherited from Object
731ClassName: string
731className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
731isA(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 25

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 6

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 6

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 6

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 6

Settings