配置项手册
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}。