配置项手册
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.enableSort
bool false v3.16.0
是否开启当前列排序。
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
是否显示列表头。
TableColumnSortStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
从
v3.16.0开始支持
表格列排序样式。
TableColumnSortStyle.ascendingSprite
Sprite
升序精灵。
TableColumnSortStyle.descendingSprite
Sprite
降序精灵。
TableColumnSortStyle.hoverColor
Color32
鼠标悬停在排序区域且图标非选中态时的悬停颜色。
TableColumnSortStyle.iconGap
float 4f
上下三角图标之间的垂直间距。
TableColumnSortStyle.iconSize
float 8f
三角图标大小。
TableColumnSortStyle.normalColor
Color32
图标普通状态颜色。
TableColumnSortStyle.rightGap
float 8f
排序按钮区域距离右侧的边距。
TableColumnSortStyle.selectedColor
Color32 Color32(65, 86, 225, 255)
图标选中颜色。
TableColumnSortStyle.show
bool true
是否开启列排序。
TableColumnSortStyle.spriteKeepAspect
bool true
是否保持精灵宽高比。
TableColumnSortStyle.useSprite
bool false
是否使用自定义精灵替代三角形绘制。
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
是否显示列。
TableColumnStyle.sortStyle
TableColumnSortStyle v3.16.0
列排序样式 。
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
垂直分割线的宽度。
TableTitle
class in XCharts.Runtime.UI / 继承自: Title
从
3.15.0开始支持
表格的标题区域。可设置标题文本、子标题文本、标题位置、标题样式等。
TableViewport
class in XCharts.Runtime.UI / 继承自: ChildComponent
从
3.15.0开始支持
表格的视口区域。可设置区域边距、背景色、边框线等。
TableViewport.backgroundColor
Color32
网格背景色,默认透明。
TableViewport.borderColor
Color32
边框颜色。
TableViewport.borderWidth
float 0f
边框宽。
TableViewport.bottom
float 50f
视口区域下侧的距离。
TableViewport.left
float 50f
视口区域左侧的距离。
TableViewport.right
float 50f
视口区域右侧的距离。
TableViewport.show
bool true
视口区域是否生效。
TableViewport.showBorder
bool false
是否显示边框。
TableViewport.top
float 60f
视口区域上侧的距离。
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.desc
string v3.15.0
统计数值描述。
UIStatistic.descLabelStyle
LabelStyle v3.15.0
描述文本样式。
UIStatistic.location
Location
文本显示位置。
UIStatistic.title
string
统计数值标题。
UIStatistic.titleLabelStyle
LabelStyle
标题文本样式。
UIStatistic.titleValueGap
float 20 v3.15.0
UIStatistic.type
统计数值类型。
可选:
Default: 默认类型。显示文本。Countdown: 倒计时类型。自动倒计时。此时value作为秒数。
UIStatistic.value
double
统计数值。或者秒数。
UIStatistic.valueDescGap
float 10 v3.15.0
数值和描述文本之间的间距。
UIStatistic.valueLabelStyle
LabelStyle
数值文本样式。
UITable
class in XCharts.Runtime.UI / 继承自: UIComponent
表格UI组件。 用于展示行列数据。
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
是否支持选中。选中行,列,单元格。
UITable.title
TableTitle v3.15.0
标题样式。
UITable.viewport
TableViewport v3.15.0
表格网格区域样式。
UIText
class in XCharts.Runtime.UI / 继承自: UIComponent
从
v3.13.0开始支持
ui component of text. UI文本组件。
UIText.text
string
文本内容。