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. Dismiss Notice

Is there anything special I should know about building to mac/linux?

Discussion in 'Editor & General Support' started by TimBorquez, Jul 2, 2014.

  1. TimBorquez

    TimBorquez

    Joined:
    Mar 18, 2013
    Posts:
    81
    Hey I am trying to release a game I made on/for windows. I would like to also have mac/linux builds as well.

    Is there anything I should be doing or knowing about for these builds? Or do I just change "target platform" in build settings and it will work out fine...

    I know these are dumb questions but I am just trying to make sure my other builds work ok. Thanks in advance

    ps
    is there a good way to test linux builds without linux?
     
  2. GregMeach

    GregMeach

    Joined:
    Dec 5, 2012
    Posts:
    249
    One rather large difference is "\" vs "/". If you use Path.<whateveritscalled> when saving or reading files you'll be all set.

    Pretty sure VMWare can run both OS X and some form of Linux on your PC
     
  3. TimBorquez

    TimBorquez

    Joined:
    Mar 18, 2013
    Posts:
    81
    i see, thank you
     
  4. chelnok

    chelnok

    Joined:
    Jul 2, 2012
    Posts:
    680
    Not sure if this is the case anymore, but last time i did a build for linux, the start screen - where you choose quality / resolution, input - was not supported, so whatever quality settings you have as default, is automaticly used for linux.
     
  5. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    That's not the case anymore. Also, you should always use "/" for path characters even in Windows for the sake of consistency. That's what Unity uses (e.g. Transform.Find etc.), and .NET/Mono uses that as well. If you're going to distribute OS X and Linux builds, you do need to test them even though it should normally just work, because occasionally something can go wrong. There are cases where it will definitely not work, such as using native plugins and DX11 shaders.

    --Eric
     
  6. TimBorquez

    TimBorquez

    Joined:
    Mar 18, 2013
    Posts:
    81
    thanks everyone, i have play testing to do i suppose