以下表列出所有可以进行样式设置的类和相关属性。随着时间的推移可能会添加额外的支持,因此请将此页添加到书签以便进行参考。
用户界面对象
贵对象
GuiObject 是一个抽象类,大多数 UI 类从中继承,包括 框架 , 标签 , 按钮 等。
图形用户界面按钮
属性 | 类型 |
---|---|
GuiButton.AutoButtonColor | boolean 类型 |
文本标签
文本按钮
图像标签
图像按钮
文本框
属性 | 类型 |
---|---|
TextBox.ClearTextOnFocus | boolean 类型 |
TextBox.MultiLine | boolean 类型 |
TextBox.PlaceholderColor3 | Color3 |
TextBox.PlaceholderText | 字符串 |
TextBox.ShowNativeInput | 字符串 |
TextBox.TextEditable | boolean 类型 |
滚动框架
视窗框架
属性 | 类型 |
---|---|
ViewportFrame.Ambient | Color3 |
ViewportFrame.ImageColor3 | Color3 |
ViewportFrame.ImageTransparency | 漂浮 |
ViewportFrame.LightColor | Color3 |
ViewportFrame.LightDirection | Vector3 |
路径2D
属性 | 类型 |
---|---|
Path2D.Closed | boolean 类型 |
Path2D.Color3 | Color3 |
Path2D.Thickness | 漂浮 |
Path2D.Visible | boolean 类型 |
Path2D.ZIndex | 整数 |
画布组
外观修改器
UICorner
UIGradient 描述 参数 例子
属性 | 类型 |
---|---|
UIGradient.Color | ColorSequence |
UIGradient.Enabled | boolean 类型 |
UIGradient.Offset | Vector2 |
UIGradient.Rotation | 漂浮 |
UIGradient.Transparency | NumberSequence |
UIPadding
属性 | 类型 |
---|---|
UIPadding.PaddingBottom | UDim |
UIPadding.PaddingLeft | UDim |
UIPadding.PaddingRight | UDim |
UIPadding.PaddingTop | UDim |
用户界面轮廓
属性 | 类型 |
---|---|
UIStroke.ApplyStrokeMode | Enum.ApplyStrokeMode |
UIStroke.Color | Color3 |
UIStroke.Enabled | boolean 类型 |
UIStroke.LineJoinMode | Enum.LineJoinMode |
UIStroke.Thickness | 漂浮 |
UIStroke.Transparency | 漂浮 |
布局结构
用户界面列布局
UIGridStyleLayout
UIGridLayout
属性 | 类型 |
---|---|
UIGridLayout.CellPadding | UDim2 |
UIGridLayout.CellSize | UDim2 |
UIGridLayout.FillDirectionMaxCells | 整数 |
UIGridLayout.StartCorner | Enum.StartCorner |
尺寸修改器和约束
用户界面比例约束
属性 | 类型 |
---|---|
UIAspectRatioConstraint.AspectRatio | 漂浮 |
UIAspectRatioConstraint.AspectType | Enum.AspectType |
UIAspectRatioConstraint.DominantAxis | Enum.DominantAxis |
UISize约束
UITextSize约束
UIScale
属性 | 类型 |
---|---|
UIScale.Scale | 漂浮 |