gizmoDraw() public method

public gizmoDraw ( float t = -1.0f ) : void
t float
return void
Example #1
0
 void OnDrawGizmos()
 {
     if (bezier != null)
     {
         bezier.gizmoDraw();             // debug aid to be able to see the path in the scene inspector
     }
 }
Example #2
0
    static int gizmoDraw(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                LTBezierPath obj = (LTBezierPath)ToLua.CheckObject <LTBezierPath>(L, 1);
                obj.gizmoDraw();
                return(0);
            }
            else if (count == 2)
            {
                LTBezierPath obj  = (LTBezierPath)ToLua.CheckObject <LTBezierPath>(L, 1);
                float        arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
                obj.gizmoDraw(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LTBezierPath.gizmoDraw"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #3
0
 static public int gizmoDraw(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
         LTBezierPath  self = (LTBezierPath)checkSelf(l);
         System.Single a1;
         checkType(l, 2, out a1);
         self.gizmoDraw(a1);
         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
 }
Example #4
0
 void OnDrawGizmos()
 {
     // Debug.Log("drwaing");
     Gizmos.color = Color.red;
     if (visualizePath != null)
     {
         visualizePath.gizmoDraw();             // To Visualize the path, use this method
     }
 }
Example #5
0
 void OnDrawGizmos()
 {
     // Debug.Log("drwaing");
     if (cr != null)
     {
         OnEnable();
     }
     Gizmos.color = Color.red;
     if (cr != null)
     {
         cr.gizmoDraw();                  // To Visualize the path, use this method
     }
 }
Example #6
0
 static public int gizmoDraw(IntPtr l)
 {
     try {
         LTBezierPath  self = (LTBezierPath)checkSelf(l);
         System.Single a1;
         checkType(l, 2, out a1);
         self.gizmoDraw(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #7
0
 static int gizmoDraw(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LTBezierPath obj  = (LTBezierPath)ToLua.CheckObject(L, 1, typeof(LTBezierPath));
         float        arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.gizmoDraw(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }