配置项手册
FillStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
填充样式。
FillStyle.autoOffset
bool
true
是否自动偏移填充位置。当为true时,会自动根据显示的文本或滑块大小自动进行左右缩进。
FillStyle.background
Background
背景样式。
FillStyle.color
Color32
Color32(145, 202, 255, 255)
填充颜色。
FillStyle.height
float
5f
填充高度。优先级比top和bottom高。在环形进度条中表示环的宽度。
FillStyle.location
Location
填充位置。
FillStyle.radius
float
0f
填充半径。只在环形进度条中有效。
FillStyle.roundCap
bool
true
是否使用圆角。只在环形进度条中有效。
FillStyle.show
bool
true
是否显示填充。
FillStyle.toColor
Color32
Color32(0, 0, 0, 0)
渐变结束颜色。
FillStyle.width
float
填充宽度。优先级比left和right高。
ITableCell
class in XCharts.Runtime.UI / 子类: TableCell
SliderHandleStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
滑块样式。
SliderHandleStyle.gradientColor
bool
false
是否使用渐变颜色。滑动条设置渐变颜色时才生效。
SliderHandleStyle.show
bool
true
是否显示滑块。
SliderHandleStyle.symbol
SymbolStyle
图形样式。
SliderMarkStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
标记样式。
SliderMarkStyle.included
bool
true
是否包含在范围内。为true时,标记显示为进度条颜色,否则显示为背景颜色。
SliderMarkStyle.label
LabelStyle
文本样式。
SliderMarkStyle.show
bool
true
是否显示标记。
SliderMarkStyle.symbol
SymbolStyle
图形样式。
TableCarouselStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
表格轮播样式。
TableCarouselStyle.hoverPause
bool
true
鼠标悬停时是否暂停。
TableCarouselStyle.mode
轮播播放模式。
可选:
Loop
: 循环播放。
TableCarouselStyle.pause
bool
false
暂停轮播。
TableCarouselStyle.show
bool
true
TableCarouselStyle.speed
float
100
轮播速度。
TableCarouselStyle.type
轮播类型。
可选:
Pixel
: 像素轮播。Row
: 单行轮播。Page
: 分页轮播。
TableCarouselStyle.waitTime
int
2000
轮播等待时间(ms)。
TableCell
class in XCharts.Runtime.UI / 继承自: ChildComponent, ITableCell
表格的单元格数据。
TableCell.boolValue
bool
当前数据的布尔值。当type为Bool时有效。
TableCell.doubleValue
double
当前数据的双精度值。当type为Double时有效。
TableCell.gameObjectValue
GameObject
当前数据的GameObject值。当type为GameObject时有效。
TableCell.show
bool
true
是否显示当前数据。
TableCell.spriteValue
Sprite
当前数据的Sprite值。当type为Sprite时有效。
TableCell.stringValue
string
当前数据的字符串值。当type为String时有效。
TableCell.type
当前数据的类型。
可选:
GameObject
:String
:Double
:Bool
:Sprite
:
TableColumn
class in XCharts.Runtime.UI / 继承自: ChildComponent
列表头内容和样式。
TableColumn.content
string
列表头内容。
TableColumn.dataLabelStyle
LabelStyle
当前列的数据文本样式。默认不启用,而是共用TableColumnHeaderStyle的defaultDataLabelStyle。
TableColumn.headerLabelStyle
LabelStyle
当前列的列表头文本样式。默认不启用,而是共用TableColumnHeaderStyle的defalutHeaderLabelStyle。
TableColumn.show
bool
true
是否显示列表头。
TableColumn.width
float
0f
列宽。默认为0时列宽平分。
TableColumnHeaderStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
列表头样式。
TableColumnHeaderStyle.background
ImageStyle
背景图片样式。
TableColumnHeaderStyle.backgroundColor
Color32
列表头背景色。
TableColumnHeaderStyle.borderStyle
BorderStyle
v3.10.0
列表头边框样式。
TableColumnHeaderStyle.defaultLabelStyle
LabelStyle
TableColumnHeaderStyle.height
float
50f
列表头高度。
TableColumnHeaderStyle.opaque
bool
true
v3.10.0
列表头是否不透明。
TableColumnHeaderStyle.show
bool
true
是否显示列表头。
TableColumnStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
列样式。
TableColumnStyle.columnBackgroundColors
List<Color32>
列背景颜色列表。
TableColumnStyle.columnWidth
float
0f
列宽。默认0,自适应。Columns中设置有时优先用Columns中的值,没有时用这个值。
TableColumnStyle.defaultLabelStyle
LabelStyle
默认的列数据文本样式。
TableColumnStyle.minColumnWidth
float
100f
最小列宽。
TableColumnStyle.show
bool
true
是否显示列。
TableRow
class in XCharts.Runtime.UI / 继承自: ChildComponent
表格的行数据。
TableRow.data
List<TableCell>
行数据列表。
TableRow.height
float
当前行的自定义高度。默认为0不自定义。
TableRow.name
string
行名称。可用于显示在行表头,用通配符{name}。
TableRow.show
bool
true
是否显示当前行。
TableRowHeaderStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
行表头样式。
TableRowHeaderStyle.backgroundColor
Color32
背景色。
TableRowHeaderStyle.labelStyle
LabelStyle
文本样式。
TableRowHeaderStyle.show
bool
true
是否显示行表头。
TableRowHeaderStyle.width
float
100f
宽度。
TableRowStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
行样式。
TableRowStyle.borderStyle
BorderStyle
v3.10.0
行边框样式。
TableRowStyle.minRowHeight
float
30f
最小行高。
TableRowStyle.rowBackgroundColors
List<Color32>
行背景颜色列表。
TableRowStyle.rowGap
float
0f
行间距。
TableRowStyle.rowHeight
float
0f
行高。
TableRowStyle.show
bool
true
是否显示行。
TableScrollbarStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
表格滚动条样式。
TableScrollbarStyle.backgroundColor
Color32
滚动条背景色。
TableScrollbarStyle.borderStyle
BorderStyle
v3.10.0
滚动条的边框样式。
TableScrollbarStyle.color
Color32
滚动条颜色。
TableScrollbarStyle.horizontal
bool
false
是否显示水平滚动条。
TableScrollbarStyle.show
bool
false
是否开启滚动条。
TableScrollbarStyle.vertical
bool
true
是否显示垂直滚动条。
TableScrollbarStyle.width
float
10
滚动条宽度。
TableSeparatorStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
表格分割线样式。
TableSeparatorStyle.horizontal
bool
true
是否显示水平分割线。
TableSeparatorStyle.horizontalColor
Color32
Color.clear
水平分割线的颜色。
TableSeparatorStyle.horizontalColumn
bool
true
是否显示列表头的水平分割线。
TableSeparatorStyle.horizontalWidth
float
1f
水平分割线的宽度。
TableSeparatorStyle.show
bool
true
是否显示分割线。
TableSeparatorStyle.vertical
bool
true
是否显示垂直分割线。
TableSeparatorStyle.verticalColor
Color32
Color.clear
垂直分割线的颜色。
TableSeparatorStyle.verticalColumn
bool
true
是否显示列表头的垂直分割线。
TableSeparatorStyle.verticalWidth
float
1f
垂直分割线的宽度。
UIImage
class in XCharts.Runtime.UI / 继承自: UIComponent
ui component of image. 图片UI组件。
UISlider
class in XCharts.Runtime.UI / 继承自: UIComponent
从
v3.13.0
开始支持
UI滑动型输入组件,展示当前值和可选范围。
UISlider.fillStyle
填充样式。
UISlider.handleStyle
滑块样式。
UISlider.interactable
bool
true
是否可交互。
UISlider.markNames
List<string>
标志名称。当指定有标志名称时,标记的文本会尝试从这里取。
UISlider.markStyle
标记样式。
UISlider.markValues
List<float>
标记值。当指定有标志值时,会在指定位置显示标记和文本。
UISlider.max
float
100
最大值。滑块值不能大于最大值。
UISlider.min
float
0
最小值。滑块值不能小于最小值。
UISlider.step
float
1
步长。滑块值会按照步长变化。
UISlider.value
float[]
滑块当前值。这是一个二维数组,当为范围值类型时,两个值分别表示最小值和最大值,其他类型时只用第二个值。
UISlider.valueType
值类型。支持默认值、范围值、枚举值。
可选:
Default
: 默认值。Range
: 范围值。Enum
: 枚举值。
UIStatistic
class in XCharts.Runtime.UI / 继承自: UIComponent
统计数值UI组件。 用于展示统计数值。当需要突出某个或某组数字时,或展示带描述的统计类数据时使用。
UIStatistic.animationStyle
AnimationStyle
起始动画。
UIStatistic.itemGap
float
5
标题和数值文本之间的间距。
UIStatistic.location
Location
文本显示位置。
UIStatistic.title
string
统计数值标题。
UIStatistic.titleLabelStyle
LabelStyle
标题文本样式。
UIStatistic.type
统计数值类型。
可选:
Default
: 默认类型。显示文本。Countdown
: 倒计时类型。自动倒计时。此时value作为秒数。
UIStatistic.value
double
统计数值。或者秒数。
UIStatistic.valueLabelStyle
LabelStyle
数值文本样式。
UITable
class in XCharts.Runtime.UI / 继承自: UIComponent
表格UI组件。 用于展示行列数据。
UITable.borderStyle
BorderStyle
表格边框样式。
UITable.carouselStyle
轮播样式。
UITable.columnHeaderStyle
默认的列头样式。
UITable.columns
List<TableColumn>
列表头样式。
UITable.columnStyle
列样式。
UITable.data
List<TableRow>
表格数据。
UITable.rowHeaderStyle
行表头样式。
UITable.rowStyle
行样式。
UITable.scrollbarStyle
滚动条样式。
UITable.scrollSensitivity
float
10f
滚动灵敏度。
UITable.selectColor
Color32
选中时的颜色。
UITable.selectHeaderColor
Color32
选中时表头的颜色。
UITable.separatorStyle
分割线样式。
UITable.supportDrag
bool
false
是否支持拖拽。
UITable.supportScroll
bool
true
是否支持滚动。
UITable.supportSelect
bool
true
是否支持选中。选中行,列,单元格。
UIText
class in XCharts.Runtime.UI / 继承自: UIComponent
从
v3.13.0
开始支持
ui component of text. UI文本组件。
UIText.text
string
文本内容。
UIText.textStyle
TextStyle
文本样式。
UITimePicker
class in XCharts.Runtime.UI / 继承自: UIComponent
时间选择UI组件。 输入或选择时间的控件。当用户需要输入一个时间,可以点击标准输入框,弹出时间面板进行选择。
UIToggle
class in XCharts.Runtime.UI / 继承自: UIComponent
从
v3.13.0
开始支持
ui component of toggle. UI开关组件。
UIToggle.borderStyle
BorderStyle
边框样式。
UIToggle.interactable
bool
true
是否可交互。
UIToggle.isOn
bool
false
是否开启。
UIToggle.labelStyle
LabelStyle
文本样式。
UIToggle.markColor
Color32
Color32(255, 255, 255, 255)
标记颜色。
UIToggle.markGap
float
5f
UIToggle.offColor
Color32
Color32(198, 198, 198, 255)
UIToggle.onColor
Color32
Color32(83, 158, 241, 255)
开启时的颜色。
UIToggle.text
string
开关文本。