rojo/.cursor/rules/roblox/reference/engine/classes/StyleLink.yaml
2026-02-02 12:08:47 -06:00

49 lines
1.5 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: StyleLink
type: class
memory_category: Gui
summary: |
Links a `Class.StyleSheet` to the instance tree whose root is the parent of
the `StyleLink`.
description: |
Links a `Class.StyleSheet` to the instance tree whose root is the parent of
the `StyleLink`. For example, placing a `StyleLink` under a `Class.ScreenGui`
applies the referenced `Class.StyleSheet` to both the `Class.ScreenGui` and
all of the `Class.GuiObject|GuiObjects` within it. Only one `Class.StyleSheet`
can apply to a given tree.
<img src="/assets/studio/explorer/StyleLink-Propagation.png" width="320" />
code_samples: []
inherits:
- Instance
descendants: []
tags: []
deprecation_message: ''
properties:
- name: StyleLink.StyleSheet
summary: |
The `Class.StyleSheet` to link to the parent such that the parent's
descendants are styled accordingly.
description: |
The `Class.StyleSheet` to link to the parent such that the parent's
descendants are styled accordingly.
code_samples: []
type: StyleSheet
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Data
serialization:
can_load: true
can_save: true
capabilities:
- UI
methods: []
events: []
callbacks: []