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

How to get the current target platform?

Discussion in 'Scripting' started by elmar1028, Mar 6, 2017.

  1. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    Hi guys,

    The title says it all, I am trying to find a way to get the current platform Unity is targeted on. Everything must be checked while in-editor.

    Thanks! :)
     
    will_unity731 likes this.
  2. mafiadude1

    mafiadude1

    Joined:
    Jun 28, 2012
    Posts:
    59
    DonPuno, bobbaluba and elmar1028 like this.
  3. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,150
  4. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
  5. DonPuno

    DonPuno

    Joined:
    Dec 22, 2020
    Posts:
    57
    Worked for me as well! Many thanks for "direction" :)
     
  6. nareshbishtasus

    nareshbishtasus

    Joined:
    Jun 11, 2018
    Posts:
    35
  7. Timten

    Timten

    Joined:
    Nov 11, 2017
    Posts:
    12
    Sikatriz likes this.