Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Line Renderer Rotation Issue

Discussion in 'General Graphics' started by crusty210, Feb 19, 2015.

  1. crusty210

    crusty210

    Joined:
    Jul 29, 2014
    Posts:
    14
    I am working on a 2D project and I have a line renderer component on one of the game objects. The problem is that the line renderer's rotation is different to that of the scene (image is shown below). As you can see the width of the line renderer is rotated with respect to the background and hence the camera only sees the 'knife edge' of the line renderer. To see the line renderer I had to switch to perspective mode. I tried changing the rotation of the object that the line renderer is attached to but it doesn't make any difference. What do I do to make the line rendere visible in orthographic view?



    Here is the orthographic view where the line renderer is not visible

     
  2. bigSadFace

    bigSadFace

    Joined:
    Aug 18, 2014
    Posts:
    116
    Is 'use world space' ticked in the parameters within the inspector of the line renderer game object??
     
  3. crusty210

    crusty210

    Joined:
    Jul 29, 2014
    Posts:
    14
    Yes world space is ticked. I tried creating a new scene and the line renderer works fine in it so I am not sure what settings I messed up in my old scene
     
  4. crusty210

    crusty210

    Joined:
    Jul 29, 2014
    Posts:
    14
    Ok, so I had to set up the correct sorting layer for the line renderer.