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

Touch Controller

Discussion in 'General Discussion' started by divinosk8, Dec 31, 2014.

  1. divinosk8

    divinosk8

    Joined:
    Dec 16, 2014
    Posts:
    63
    Hi guys. I m making a first person controller game, and i am using unity standart fps prefab.
    I want to port the game on android devices and i will need to have a joystick, a touchpad and so on. I have found on the asset store something called like "CNController".
    I can't manage to integrate it in my project. Could you help me please ? The problem is that the cncontroller doesnt work how it should. I think it is because the fps prefab already have some settings. But if i delete it, it wouldn't work.... so, what is to do, guys ?
    Happy new year and thanks in advance
     
  2. JDMulti

    JDMulti

    Joined:
    Jan 4, 2012
    Posts:
    384
    I was searching for this as well and found this:

    On the asset store Unity 4.6 beta assets
    https://www.assetstore.unity3d.com/en/#!/content/21064

    In this package there is a rollerball scene that let's you control a rolling ball. Put your publish settings on Android or iOS and run that scene, else the joystick won't be displayed or even working.
    In the scene hierarchy, check out the joystick controller, it's really simple. It just needs a couple of c# scripts and a new GUI image, that's all.

    Ooh and you need to acces the GetAxis Horizontal and Vertical from the Input manager and let those inputs control your character. =)
     
  3. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    There's an FPS mobile controller in the Sample Assets package I believe. It used to be in Standard Assets(mobile).
     
  4. divinosk8

    divinosk8

    Joined:
    Dec 16, 2014
    Posts:
    63
    I can't find it.
     
  5. divinosk8

    divinosk8

    Joined:
    Dec 16, 2014
    Posts:
    63
    I'm a beginner, man. Could you please be more specific ? because i dont know how to acces or edit axis
     
  6. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628