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

Request: Major version preprocessor define

Discussion in 'Unity 5 Pre-order Beta' started by steego, Feb 15, 2015.

  1. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    968
    Could we please get a define for UNITY_5, covering all the releases in the 5 series, so we don't end up having to use UNITY_5_0 || UNITY_5_1 || UNITY_5_2 || .... for all our scripts that are specific to Unity 5 and onwards?
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,615
    According to our records, we changed the code to add this define about 3 months ago. Are you sure it's not already there?
     
  3. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    968
    Yeah you're right it is there, I must have totally missed it, thanks.
     
    superpig likes this.