drawGizmo() public method

public drawGizmo ( Color color ) : void
color Color
return void
 // Use this for visualizing what the track looks like in the editor (for a full suite of spline tools check out the LeanTween Editor)
 void OnDrawGizmos()
 {
     if (track != null)
     {
         track.drawGizmo(Color.red);
     }
 }
示例#2
0
 static public int drawGizmo_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);
         UnityEngine.Color a2;
         checkType(l, 2, out a2);
         LTSpline.drawGizmo(a1, a2);
         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
 }
示例#3
0
    static int drawGizmo(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Transform[]), typeof(UnityEngine.Color)))
            {
                UnityEngine.Transform[] arg0 = ToLua.CheckObjectArray <UnityEngine.Transform>(L, 1);
                UnityEngine.Color       arg1 = ToLua.ToColor(L, 2);
                LTSpline.drawGizmo(arg0, arg1);
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(LTSpline), typeof(UnityEngine.Color)))
            {
                LTSpline          obj  = (LTSpline)ToLua.ToObject(L, 1);
                UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
                obj.drawGizmo(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LTSpline.drawGizmo"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
示例#4
0
 void OnDrawGizmos()
 {
     if (CheckReady() != "")
     {
         return;
     }
     LTSpline.drawGizmo(getPoints(), Color.red);
 }
示例#5
0
 static public int drawGizmo(IntPtr l)
 {
     try {
         LTSpline          self = (LTSpline)checkSelf(l);
         UnityEngine.Color a1;
         checkType(l, 2, out a1);
         self.drawGizmo(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#6
0
 static public int drawGizmo_s(IntPtr l)
 {
     try {
         UnityEngine.Transform[] a1;
         checkArray(l, 1, out a1);
         UnityEngine.Color a2;
         checkType(l, 2, out a2);
         LTSpline.drawGizmo(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#7
0
 // Use this for visualizing what the track looks like in the editor (for a full suite of spline tools check out the LeanTween Editor)
 void OnDrawGizmos()
 {
     LTSpline.drawGizmo(trackOnePoints, Color.red);
 }