You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
643 B

2 years ago
  1. using DebugDrawEx;
  2. using UnityEngine;
  3. public class Test : MonoBehaviour
  4. {
  5. void Start()
  6. {
  7. var point1 = new Vector3(-3, 0, 0);
  8. var point2 = new Vector3(3, 0, 0);
  9. DebugDraw.DrawLine(point1, point2, Color.green, 5, true);
  10. //Debug.DrawLine(point1, point2, Color.green, 1000, false);
  11. //Debug.DrawLine(point1, point2);
  12. }
  13. void Update()
  14. {
  15. /*
  16. var point1 = new Vector3(-3, 0, 0);
  17. var point2 = new Vector3(3, 0, 0);
  18. DebugDraw.DrawLine(point1, point2, Color.green, 0, true);
  19. //Debug.DrawLine(point1, point2, Color.green, 1000, false);
  20. */
  21. }
  22. }