コード例 #1
0
        public static void DrawLine(Vector3 start, Vector3 end, Color color)
        {
            bool  depthTest = true;
            float duration  = 0f;

            Debug.INTERNAL_CALL_DrawLine(ref start, ref end, ref color, duration, depthTest);
        }
コード例 #2
0
        public static void DrawLine(Vector3 start, Vector3 end)
        {
            bool  depthTest = true;
            float duration  = 0f;
            Color white     = Color.white;

            Debug.INTERNAL_CALL_DrawLine(ref start, ref end, ref white, duration, depthTest);
        }
コード例 #3
0
 /// <summary>
 ///   <para>Draws a line between specified start and end points.</para>
 /// </summary>
 /// <param name="start">Point in world space where the line should start.</param>
 /// <param name="end">Point in world space where the line should end.</param>
 /// <param name="color">Color of the line.</param>
 /// <param name="duration">How long the line should be visible for.</param>
 /// <param name="depthTest">Should the line be obscured by objects closer to the camera?</param>
 public static void DrawLine(Vector3 start, Vector3 end, [DefaultValue("Color.white")] Color color, [DefaultValue("0.0f")] float duration, [DefaultValue("true")] bool depthTest)
 {
     Debug.INTERNAL_CALL_DrawLine(ref start, ref end, ref color, duration, depthTest);
 }