mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-18 17:34:45 +01:00
29 lines
580 B
C#
29 lines
580 B
C#
namespace UnityEngine.UI
|
|
{
|
|
[DisallowMultipleComponent]
|
|
[AddComponentMenu("UI/RaycastTarget")]
|
|
[RequireComponent(typeof(RectTransform))]
|
|
public class RaycastTarget : Graphic, ICanvasRaycastFilter
|
|
{
|
|
private RectTransform m_RectTransform;
|
|
|
|
public new RectTransform rectTransform
|
|
{
|
|
get
|
|
{
|
|
return m_RectTransform ?? (m_RectTransform = GetComponent<RectTransform>());
|
|
}
|
|
}
|
|
|
|
protected override void OnPopulateMesh(VertexHelper toFill)
|
|
{
|
|
toFill.Clear();
|
|
}
|
|
|
|
public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|