API
DataType
class in XCharts.Runtime.UI
可选:
GameObject:String:Double:Bool:Sprite:
FillStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
填充样式。
FillStyle.autoOffset
public bool autoOffset
是否自动偏移填充位置。当为true时,会自动根据显示的文本或滑块大小自动进行左右缩进。
FillStyle.background
public Background background
背景样式。
FillStyle.color
public Color32 color
填充颜色。
FillStyle.height
public float height
填充高度。优先级比top和bottom高。在环形进度条中表示环的宽度。
FillStyle.location
public Location location
填充位置。
FillStyle.radius
public float radius
填充半径。只在环形进度条中有效。
FillStyle.roundCap
public bool roundCap
是否使用圆角。只在环形进度条中有效。
FillStyle.show
public bool show
是否显示填充。
FillStyle.toColor
public Color32 toColor
渐变结束颜色。
FillStyle.width
public float width
填充宽度。优先级比left和right高。
ITableCell
class in XCharts.Runtime.UI / 子类: TableCell
ProgressContext
class in XCharts.Runtime.UI
SliderContext
class in XCharts.Runtime.UI
SliderHandleStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
滑块样式。
SliderHandleStyle.gradientColor
public bool gradientColor
是否使用渐变颜色。滑动条设置渐变颜色时才生效。
SliderHandleStyle.show
public bool show
是否显示滑块。
SliderHandleStyle.symbol
public SymbolStyle symbol
图形样式。
SliderMarkStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
标记样式。
SliderMarkStyle.included
public bool included
是否包含在范围内。为true时,标记显示为进度条颜色,否则显示为背景颜色。
SliderMarkStyle.label
public LabelStyle label
文本样式。
SliderMarkStyle.show
public bool show
是否显示标记。
SliderMarkStyle.symbol
public SymbolStyle symbol
图形样式。
StatisticContext
class in XCharts.Runtime.UI
StatisticHelper
class in XCharts.Runtime.UI
StatisticHelper.GetContentPosition
public static Vector3 GetContentPosition(UIStatistic statistic)
StatisticHelper.GetDescContent
public static string GetDescContent(UIStatistic statistic, double value)
StatisticHelper.GetTitleContent
public static string GetTitleContent(UIStatistic statistic, double value)
StatisticHelper.GetValueContent
public static string GetValueContent(UIStatistic statistic, double value)
TableCarouselContext
class in XCharts.Runtime.UI
TableCarouselMode
class in XCharts.Runtime.UI
轮播播放模式。
可选:
Loop: 循环播放。
TableCarouselStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
表格轮播样式。
TableCarouselType
class in XCharts.Runtime.UI
表格轮播类型。
可选:
Pixel: 像素轮播。Row: 单行轮播。Page: 分页轮播。
TableCell
class in XCharts.Runtime.UI / 继承自: ChildComponent,ITableCell
表格的单元格数据。
TableCell.GetContent
public string GetContent()
获取当前数据的内容。
TableColumn
class in XCharts.Runtime.UI / 继承自: ChildComponent
列表头内容和样式。
TableColumnHeaderStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
列表头样式。
TableColumnHeaderStyle.background
public ImageStyle background
背景图片样式。
TableColumnHeaderStyle.backgroundColor
public Color32 backgroundColor
列表头背景色。
TableColumnHeaderStyle.height
public float height
列表头高度。
TableColumnHeaderStyle.opaque
public bool opaque
列表头是否不透明。
TableColumnStyle
class in XCharts.Runtime.UI / 继承自: ChildComponent
列样式。
TableColumnStyle.columnBackgroundColors
public List<Color32> columnBackgroundColors
列背景颜色列表。
TableContext
class in XCharts.Runtime.UI
表格运行时上下文。
TableHelper
class in XCharts.Runtime.UI
表格帮助类。
TableHelper.ClampVectorMin
public static void ClampVectorMin(float minX, ref Vector3 p1, ref Vector3 p2, ref Vector3 p3, ref Vector3 p4)
TableHelper.GetAllColumnWidth
public static float GetAllColumnWidth(UITable table)
TableHelper.GetAllRowAndGapHeight
public static float GetAllRowAndGapHeight(UITable table)
TableHelper.GetAllRowHeight
public static float GetAllRowHeight(UITable table)
TableHelper.GetBackgroundColor
public static Color32 GetBackgroundColor(UITable table)
TableHelper.GetCarouselProgress
public static float GetCarouselProgress(UITable table)
TableHelper.GetColumnAutoEachWidth
public static float GetColumnAutoEachWidth(UITable table)
TableHelper.GetColumnHeaderBackgroundColor
public static Color32 GetColumnHeaderBackgroundColor(UITable table)
TableHelper.GetColumnHeaderHeight
public static float GetColumnHeaderHeight(UITable table)
TableHelper.GetColumnWidth
public static float GetColumnWidth(UITable table, int columnIndex, float eachWidth = 0)
TableHelper.GetDataLabelStyle
public static LabelStyle GetDataLabelStyle(UITable table, int index)
TableHelper.GetHeaderLabelStyle
public static LabelStyle GetHeaderLabelStyle(UITable table, int index)
TableHelper.GetHorizontalSeparatorColor
public static Color32 GetHorizontalSeparatorColor(UITable table)
TableHelper.GetRowAutoEachHeight
public static float GetRowAutoEachHeight(UITable table)
TableHelper.GetRowBackgroundColor
public static Color32 GetRowBackgroundColor(UITable table, int index)
TableHelper.GetRowHeaderBgColor
public static Color32 GetRowHeaderBgColor(UITable table, int rowIndex)