summaryrefslogtreecommitdiff
path: root/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/Selectable.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-11 09:11:40 +0800
committerchai <chaifix@163.com>2020-10-11 09:11:40 +0800
commit8d89ca7b0662cff2a93b33ed92205ff3f6170436 (patch)
treec122a359e2654e520943d41dfa5d1221b576171c /Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/Selectable.cs
parent00dae1bd426d892dff73a50f1c505afd1ac00a90 (diff)
*misc
Diffstat (limited to 'Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/Selectable.cs')
-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