drawLine() public static method

public static drawLine ( Transform arr, float width, Color color ) : void
arr Transform
width float
color Color
return void
Beispiel #1
0
 static public int drawLine_s(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.Transform[] a1;
         checkArray(l, 1, out a1);
         System.Single a2;
         checkType(l, 2, out a2);
         UnityEngine.Color a3;
         checkType(l, 3, out a3);
         LTSpline.drawLine(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     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
 }
Beispiel #2
0
 static int drawLine(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UnityEngine.Transform[] arg0 = ToLua.CheckObjectArray <UnityEngine.Transform>(L, 1);
         float             arg1       = (float)LuaDLL.luaL_checknumber(L, 2);
         UnityEngine.Color arg2       = ToLua.ToColor(L, 3);
         LTSpline.drawLine(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #3
0
 static public int drawLine_s(IntPtr l)
 {
     try {
         UnityEngine.Transform[] a1;
         checkArray(l, 1, out a1);
         System.Single a2;
         checkType(l, 2, out a2);
         UnityEngine.Color a3;
         checkType(l, 3, out a3);
         LTSpline.drawLine(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }