Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Wierd Warning: Inconsistent Line Ending

Discussion in 'Scripting' started by warit, Aug 14, 2008.

  1. warit

    warit

    Joined:
    Mar 4, 2008
    Posts:
    52
    After upgrading to Unity 2.1, I keep getting this "There are Inconsistent Line endings in the... some are Mac OS some are Window" message. Eventhough, there's no such thing in my scripts.

    It's pretty annoying. Any clue about this?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Your text editor should have some way of changing all line endings to one type. You can get this if you copy&pasted text from some other sources even if you didn't do it deliberately.

    --Eric
     
  3. Sonictail

    Sonictail

    Joined:
    Jul 15, 2008
    Posts:
    14
    If you're using Unitron, select all text, goto text > line ending > mac osx and that will fix the problem.
     
  4. AmazingRuss

    AmazingRuss

    Joined:
    May 25, 2008
    Posts:
    933
    Ahh! Thank you. This has been vexing me for some time.