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

Mobile input in top menu enable/disable script check

Discussion in 'Editor & General Support' started by malek8, Apr 21, 2016.

  1. malek8

    malek8

    Joined:
    Feb 26, 2014
    Posts:
    33
    hi,

    Is posilbe check script if is mobile input enable or disable? (picture)
    something like

    if( Application.mobileInput ) ..

    thanks
     

    Attached Files:

  2. BeshevGames

    BeshevGames

    Joined:
    Apr 8, 2016
    Posts:
    8
    Hi, you can try
    Code (CSharp):
    1. #if MOBILE_INPUT
    to check if mobile input is enabled :)
     
  3. Rarceth

    Rarceth

    Joined:
    Oct 15, 2015
    Posts:
    41
    sorry to necro, but any way to set that value via script? my menu item isnt appearing when i set build settings to android