Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Vectrosity - Fast and Easy Line Drawing

Discussion in 'Assets and Asset Store' started by Eric5h5, Sep 26, 2014.

  1. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,149
    It uses standard Unity units, yes. Here's a default cube at the origin with a VectorLine using MakeCube (Vector3.zero, 1, 1, 1):

    Screen Shot 2019-10-20 at 3.40.58 PM.png

    If you've moved or scaled the line, or are using drawTransform with an object that's scaled, you can expect different results. In the scene view:

    Screen Shot 2019-10-20 at 3.46.07 PM.png

    The line segments are oriented so they face the game view camera, so they won't necessarily appear to have the correct orientation in the scene view, but the positions are world space and will match. Again, moving the VectorLine in any way will likely interfere.

    --Eric
     
  2. Andorid42

    Andorid42

    Joined:
    May 8, 2016
    Posts:
    8
    Awesome thank you for the quick response :)