summaryrefslogtreecommitdiff
path: root/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/uGUI-2017.1/UnityEngine.UI/UI/Core')
-rw-r--r--Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/Selectable.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/Selectable.cs b/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/Selectable.cs
index b40a924..fdc4dd6 100644
--- a/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/Selectable.cs
+++ b/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/Selectable.cs
@@ -61,6 +61,8 @@ namespace UnityEngine.UI
[SerializeField]
private bool m_Interactable = true;
+
+ //c m_TargetGraphic 只是用来做展示,这个变量不会用来进行射线检测,在Awake()里注释掉也还会触发点击事件
// Graphic that will be colored.
[FormerlySerializedAs("highlightGraphic")]
[FormerlySerializedAs("m_HighlightGraphic")]
@@ -112,8 +114,12 @@ namespace UnityEngine.UI
// Convenience function that converts the Graphic to a Image, if possible
public Image image
{
- get { return m_TargetGraphic as Image; }
- set { m_TargetGraphic = value; }
+ get {
+ return m_TargetGraphic as Image;
+ }
+ set {
+ m_TargetGraphic = value;
+ }
}
// Get the animator