mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-19 06:50:18 +00:00
优化性能,优化折线图和柱状图的大数据绘制,重构代码
This commit is contained in:
@@ -145,7 +145,7 @@ namespace XCharts
|
||||
if (parent.Find(name))
|
||||
{
|
||||
obj = parent.Find(name).gameObject;
|
||||
obj.SetActive(true);
|
||||
SetActive(obj, true);
|
||||
obj.transform.localPosition = Vector3.zero;
|
||||
obj.transform.localScale = Vector3.one;
|
||||
}
|
||||
@@ -423,6 +423,16 @@ namespace XCharts
|
||||
return true;
|
||||
}
|
||||
|
||||
public static bool IsClearColor(Color32 color)
|
||||
{
|
||||
return color.a == 0 && color.b == 0 && color.g == 0 && color.r == 0;
|
||||
}
|
||||
|
||||
public static bool IsClearColor(Color color)
|
||||
{
|
||||
return color.a == 0 && color.b == 0 && color.g == 0 && color.r == 0;
|
||||
}
|
||||
|
||||
public static bool CopyList<T>(List<T> toList, List<T> fromList)
|
||||
{
|
||||
if (toList == null || fromList == null) return false;
|
||||
|
||||
Reference in New Issue
Block a user