FindSelectable() public method

public FindSelectable ( System.Vector3 dir ) : Selectable
dir System.Vector3
return Selectable
コード例 #1
0
 static public int FindSelectable(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.Selectable self = (UnityEngine.UI.Selectable)checkSelf(l);
         UnityEngine.Vector3       a1;
         checkType(l, 2, out a1);
         var ret = self.FindSelectable(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
コード例 #2
0
    static int FindSelectable(IntPtr L)
    {
        L.ChkArgsCount(2);
        UnityEngine.UI.Selectable obj = (UnityEngine.UI.Selectable)L.ChkUnityObjectSelf(1, "UnityEngine.UI.Selectable");
        var arg0 = L.ToVector3(2);

        UnityEngine.UI.Selectable o = obj.FindSelectable(arg0);
        L.PushLightUserData(o);
        return(1);
    }
コード例 #3
0
    static int FindSelectable(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UnityEngine.UI.Selectable obj = (UnityEngine.UI.Selectable)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.Selectable");
        Vector3 arg0 = LuaScriptMgr.GetVector3(L, 2);

        UnityEngine.UI.Selectable o = obj.FindSelectable(arg0);
        LuaScriptMgr.Push(L, o);
        return(1);
    }
コード例 #4
0
 static public int FindSelectable(IntPtr l)
 {
     try {
         UnityEngine.UI.Selectable self = (UnityEngine.UI.Selectable)checkSelf(l);
         UnityEngine.Vector3       a1;
         checkType(l, 2, out a1);
         var ret = self.FindSelectable(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #5
0
	static public int FindSelectable(IntPtr l) {
		try {
			UnityEngine.UI.Selectable self=(UnityEngine.UI.Selectable)checkSelf(l);
			UnityEngine.Vector3 a1;
			checkType(l,2,out a1);
			var ret=self.FindSelectable(a1);
			pushValue(l,ret);
			return 1;
		}
		catch(Exception e) {
			LuaDLL.luaL_error(l, e.ToString());
			return 0;
		}
	}
コード例 #6
0
 static int QPYX_FindSelectable_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         UnityEngine.UI.Selectable QPYX_obj_YXQP  = (UnityEngine.UI.Selectable)ToLua.CheckObject <UnityEngine.UI.Selectable>(L_YXQP, 1);
         UnityEngine.Vector3       QPYX_arg0_YXQP = ToLua.ToVector3(L_YXQP, 2);
         UnityEngine.UI.Selectable QPYX_o_YXQP    = QPYX_obj_YXQP.FindSelectable(QPYX_arg0_YXQP);
         ToLua.Push(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
コード例 #7
0
 static int FindSelectable(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Selectable obj  = (UnityEngine.UI.Selectable)ToLua.CheckObject(L, 1, typeof(UnityEngine.UI.Selectable));
         UnityEngine.Vector3       arg0 = ToLua.ToVector3(L, 2);
         UnityEngine.UI.Selectable o    = obj.FindSelectable(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #8
0
 static public Selectable FindSelectableOnUp(this Selectable selectable, FilterDelegate filter)
 {
     return(selectable.FindSelectable(Vector3.up, filter));
 }
コード例 #9
0
 static public Selectable FindSelectableOnRight(this Selectable selectable, FilterDelegate filter)
 {
     return(selectable.FindSelectable(Vector3.right, filter));
 }