mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 14:00:12 +00:00
修复Chart在运行时被删除时会异常报错的问题 (#269)
This commit is contained in:
@@ -55,10 +55,17 @@ namespace XCharts.Runtime
|
||||
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
raycastTarget = false;
|
||||
SetActive(true);
|
||||
}
|
||||
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
base.OnDestroy();
|
||||
GraphicRegistry.UnregisterGraphicForCanvas(canvas, this);
|
||||
}
|
||||
|
||||
public void SetTextPadding(TextPadding padding)
|
||||
{
|
||||
m_PaddingLeft = padding.left;
|
||||
|
||||
Reference in New Issue
Block a user