Search Unity

How to bring up an Android/iOS spinner in C#

Discussion in 'Scripting' started by ShottyMonsta, Jul 17, 2014.

  1. ShottyMonsta

    ShottyMonsta

    Joined:
    May 23, 2014
    Posts:
    25
    Hi all,

    I have something that looks like this:




    The idea is the player will touch on one of the gaps and a spinner like this will pop up:




    These spinners/pickers are standard built in iOS/Android stuff aren't they? So how do I tell Unity to open one...
     
  2. DexRobinson

    DexRobinson

    Joined:
    Jul 26, 2011
    Posts:
    594
    While this is standard in Xcode and the Android API it isn't in Unity. If you want to make a picker inside of Unity you have to make it yourself. NGUI has something like it, but it isn't the exact same. If you want to use the Xcode library then you will need something like this that can reference their API.

    https://www.assetstore.unity3d.com/en/#!/content/12067
     
  3. ShottyMonsta

    ShottyMonsta

    Joined:
    May 23, 2014
    Posts:
    25
    I have no money to buy NGUI or the Xcode library :-(

    are there any free alternatives? I'd rather not spend a week implementing a spinner if there is already existing functionality for free somewhere.