以下表格概述了所有可以進行樣式設置的類別及其相關屬性。隨著時間的推移,可能會增加其他支援,因此請將此頁面添加到書籤以作參考。
UI 物件
GuiObject
GuiObject 是一個抽象類別,大多數 UI 類別繼承自此類別,包括 frames、labels、buttons 等。
GuiButton
| 屬性 | 類型 |
|---|---|
| GuiButton.AutoButtonColor | boolean |
TextLabel
TextButton
ImageLabel
ImageButton
TextBox
| 屬性 | 類型 |
|---|---|
| TextBox.ClearTextOnFocus | boolean |
| TextBox.MultiLine | boolean |
| TextBox.PlaceholderColor3 | Color3 |
| TextBox.PlaceholderText | string |
| TextBox.ShowNativeInput | string |
| TextBox.TextEditable | boolean |
ScrollingFrame
ViewportFrame
| 屬性 | 類型 |
|---|---|
| ViewportFrame.Ambient | Color3 |
| ViewportFrame.ImageColor3 | Color3 |
| ViewportFrame.ImageTransparency | float |
| ViewportFrame.LightColor | Color3 |
| ViewportFrame.LightDirection | Vector3 |
Path2D
| 屬性 | 類型 |
|---|---|
| Path2D.Closed | boolean |
| Path2D.Color3 | Color3 |
| Path2D.Thickness | float |
| Path2D.Visible | boolean |
| Path2D.ZIndex | integer |
CanvasGroup
外觀修飾器
UICorner
| 屬性 | 類型 |
|---|---|
| UICorner.CornerRadius | UDim |
| UICorner.BottomLeftRadius | UDim |
| UICorner.BottomRightRadius | UDim |
| UICorner.TopLeftRadius | UDim |
| UICorner.TopRightRadius | UDim |
UIGradient
| 屬性 | 類型 |
|---|---|
| UIGradient.Color | ColorSequence |
| UIGradient.Enabled | boolean |
| UIGradient.Offset | Vector2 |
| UIGradient.Rotation | float |
| UIGradient.Transparency | NumberSequence |
UIPadding
| 屬性 | 類型 |
|---|---|
| UIPadding.PaddingBottom | UDim |
| UIPadding.PaddingLeft | UDim |
| UIPadding.PaddingRight | UDim |
| UIPadding.PaddingTop | UDim |
UIShadow
| 屬性 | 類型 |
|---|---|
| UIShadow.BlurRadius | UDim |
| UIShadow.Color | Color3 |
| UIShadow.Offset | UDim2 |
| UIShadow.Spread | UDim2 |
| UIShadow.Transparency | float |
| UIShadow.ZIndex | integer |
UIStroke
| 屬性 | 類型 |
|---|---|
| UIStroke.ApplyStrokeMode | Enum.ApplyStrokeMode |
| UIStroke.Color | Color3 |
| UIStroke.Enabled | boolean |
| UIStroke.LineJoinMode | Enum.LineJoinMode |
| UIStroke.Thickness | float |
| UIStroke.Transparency | float |
佈局結構
UIListLayout
UIGridStyleLayout
UIGridLayout
| 屬性 | 類型 |
|---|---|
| UIGridLayout.CellPadding | UDim2 |
| UIGridLayout.CellSize | UDim2 |
| UIGridLayout.FillDirectionMaxCells | integer |
| UIGridLayout.StartCorner | Enum.StartCorner |
UIPageLayout
大小修飾器和約束
UIAspectRatioConstraint
| 屬性 | 類型 |
|---|---|
| UIAspectRatioConstraint.AspectRatio | float |
| UIAspectRatioConstraint.AspectType | Enum.AspectType |
| UIAspectRatioConstraint.DominantAxis | Enum.DominantAxis |
UISizeConstraint
UITextSizeConstraint
| 屬性 | 類型 |
|---|---|
| UITextSizeConstraint.MaxTextSize | integer |
| UITextSizeConstraint.MinTextSize | integer |
UIScale
| 屬性 | 類型 |
|---|---|
| UIScale.Scale | float |
UIFlexItem
| 屬性 | 類型 |
|---|---|
| UIFlexItem.FlexMode | Enum.UIFlexMode |
| UIFlexItem.GrowRatio | float |
| UIFlexItem.ItemLineAlignment | Enum.ItemLineAlignment |
| UIFlexItem.ShrinkRatio | float |
StyleQuery
StyleQuery 允許您定義條件斷點(類似容器/媒體查詢)來控制何時將樣式應用於查詢的父實例。