Skip to content

Class · inherits Instance

StyleLink

Official docs ↗

Links a StyleSheet to the instance tree whose root is the parent of the StyleLink.

About StyleLink

Links a StyleSheet to the instance tree whose root is the parent of the StyleLink. For example, placing a StyleLink under a ScreenGui applies the referenced StyleSheet to both the ScreenGui and all of the GuiObjects within it. Only one StyleSheet can apply to a given tree.

Properties 1

  • StyleSheet: StyleSheetThe StyleSheet to link to the parent such that the parent's descendants are styled accordingly.

StyleLink also has every member of Instance. 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.