关闭部分组件的raycastTarget

This commit is contained in:
monitor1394
2020-06-11 06:59:16 +08:00
parent e00fd46bdf
commit 7abaecb26a
2 changed files with 4 additions and 1 deletions

View File

@@ -286,6 +286,7 @@ namespace XCharts
m_Content = content;
m_ContentRect = m_Content.GetComponent<RectTransform>();
m_ContentImage = m_Content.GetComponent<Image>();
m_ContentImage.raycastTarget = false;
m_ContentText = m_Content.GetComponentInChildren<Text>();
if (m_ContentText != null)
{