增加Check warning检测功能

This commit is contained in:
monitor1394
2020-04-11 15:18:34 +08:00
parent 80a946d0c6
commit c5b810df8b
8 changed files with 261 additions and 1 deletions

View File

@@ -67,6 +67,10 @@ namespace XCharts
/// </summary>
public Action<VertexHelper> customDrawCallback { set { m_CustomDrawCallback = value; } }
/// <summary>
/// 警告信息。
/// </summary>
public string warningInfo { get; protected set; }
/// <summary>
/// Set the size of chart.
/// 设置图表的大小。
/// </summary>
@@ -637,5 +641,16 @@ namespace XCharts
return np;
}
}
/// <summary>
/// 检测警告信息。
/// </summary>
/// <returns></returns>
public string CheckWarning()
{
warningInfo = CheckHelper.CheckChart(this);
Debug.LogError(warningInfo);
return warningInfo;
}
}
}