UnityEngine.GUILayer.HitTest C# (CSharp) Method

HitTest() public method

Get the GUI element at a specific screen position.

public HitTest ( Vector3 screenPosition ) : GUIElement
screenPosition Vector3
return GUIElement
        public GUIElement HitTest(Vector3 screenPosition)
        {
            return INTERNAL_CALL_HitTest(this, ref screenPosition);
        }

Usage Example

コード例 #1
0
 static public int HitTest(IntPtr l)
 {
     try {
         UnityEngine.GUILayer self = (UnityEngine.GUILayer)checkSelf(l);
         UnityEngine.Vector3  a1;
         checkType(l, 2, out a1);
         var ret = self.HitTest(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of UnityEngine.GUILayer::HitTest