summaryrefslogtreecommitdiff
path: root/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/RaycastResult.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-04-07 15:38:57 +0800
committerchai <chaifix@163.com>2021-04-07 15:38:57 +0800
commitff5a3fbf31db349db11bbc5c60ba199d26780f19 (patch)
treecd8fec7d2910408470dc9d141dc72ac00cd148bf /Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/RaycastResult.cs
parent6b25723ca33a657882588b2cc3a58101bb9d33e6 (diff)
*移动目录
Diffstat (limited to 'Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/RaycastResult.cs')
-rw-r--r--Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/RaycastResult.cs65
1 files changed, 0 insertions, 65 deletions
diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/RaycastResult.cs b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/RaycastResult.cs
deleted file mode 100644
index 666ef8d..0000000
--- a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/RaycastResult.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-namespace UnityEngine.EventSystems
-{
- // UGUIÉäÏß¼ì²â½á¹û
- public struct RaycastResult
- {
- private GameObject m_GameObject; // Game object hit by the raycast
-
- public GameObject gameObject
- {
- get { return m_GameObject; }
- set { m_GameObject = value; }
- }
-
- public BaseRaycaster module; // Event system that hit this object
- public float distance; // The distance from the origin this hit was.
- public float index; // The index this element is in the raycastList (used for sorting)
- public int depth;
- public int sortingLayer;
- public int sortingOrder;
- // World-space position where a ray cast into the screen hits something
- public Vector3 worldPosition;
- // World-space normal where a ray cast into the screen hits something
- public Vector3 worldNormal;
-
- public Vector2 screenPosition;
-
- public bool isValid
- {
- get { return module != null && gameObject != null; }
- }
-
- public void Clear()
- {
- gameObject = null;
- module = null;
- distance = 0;
- index = 0;
- depth = 0;
- sortingLayer = 0;
- sortingOrder = 0;
- worldNormal = Vector3.up;
- worldPosition = Vector3.zero;
- screenPosition = Vector2.zero;
- }
-
- public override string ToString()
- {
- if (!isValid)
- return "";
-
- return "Name: " + gameObject + "\n" +
- "module: " + module + "\n" +
- "distance: " + distance + "\n" +
- "index: " + index + "\n" +
- "depth: " + depth + "\n" +
- "worldNormal: " + worldNormal + "\n" +
- "worldPosition: " + worldPosition + "\n" +
- "screenPosition: " + screenPosition + "\n" +
- "module.sortOrderPriority: " + module.sortOrderPriority + "\n" +
- "module.renderOrderPriority: " + module.renderOrderPriority + "\n" +
- "sortingLayer: " + sortingLayer + "\n" +
- "sortingOrder: " + sortingOrder;
- }
- }
-}