Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

What is the platform define macro for Linux?

Discussion in 'Scripting' started by Agent_007, Nov 27, 2012.

  1. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    As the title asks, "What is the platform macro for Linux?"

    http://docs.unity3d.com/Documentation/Manual/PlatformDependentCompilation.html that page doesn't say anything about the Linux, but it would be reasonable assumption that the macro would be UNITY_STANDALONE_LIN since UNITY_STANDALONE_WIN is for Windows and UNITY_STANDALONE_OSX is for Mac OS X.

    Unfortunately UNITY_STANDALONE_LIN doesn't return any Google hits (well it will after this post, but anyways), and some hits (binrand dot com) are returned if search term is UNITY_STANDALONE_LINUX.
     
  2. Landern

    Landern

    Joined:
    Dec 21, 2008
    Posts:
    354

    It does, last in the first list, just under UNITY_FLASH.

    UNITY_LINUX
     
  3. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899