Search Unity

Adding code for use on mobile devices

Discussion in 'Community Learning & Teaching' started by Deleted User, Oct 11, 2019.

  1. Deleted User

    Deleted User

    Guest

  2. Valjuin

    Valjuin

    Joined:
    May 22, 2019
    Posts:
    481
    In this thread: Question on unity learn tutorials
    I replied:
     
    Last edited: Oct 11, 2019
  3. Deleted User

    Deleted User

    Guest

  4. Valjuin

    Valjuin

    Joined:
    May 22, 2019
    Posts:
    481
    I am not posting a link to a tutorial.

    I am trying to send you to a post in which harpwood said:

    Click on this link for the code
     
  5. Deleted User

    Deleted User

    Guest

    I've tested it and they work well. Thank you very much. However to take it further, I used the code for my 2D project and found that I still need to modify other project variables. Is there a different code for 2D project or I need to test and try when I apply to 2D?
     
  6. Valjuin

    Valjuin

    Joined:
    May 22, 2019
    Posts:
    481
    The Unity Learn 2D Roguelike project adds mobile touch screen controls in the final part.

    Click on this link (which takes you to the final section (Architecture and Polish)) and scroll down to 3. Adding Mobile Controls:

    https://unity3d.com/learn/tutorials/projects/2d-roguelike-tutorial/adding-mobile-controls

    If you want to work through the entire project, you will find it under Projects in the Unity Hub Learn tab. (Link to full tutorial: https://unity3d.com › learn › tutorials › 2d-roguelike-tutorial).

    The following is a link to a 2D project which covers tap, pinch and swipe (or drag) gestures:

    http://pixelnest.io/tutorials/unity-touch-controls...
     
  7. Deleted User

    Deleted User

    Guest

    I just spent many months completing a unity training course. I will try this once I feel I've rested enough. Thank you for the link - saved it. I'm also getting help from a unity team member to update input.gettouch tutorials. That way, I can apply them to my own projects to understand how they work. I feel it's time consuming to have to create a completely new one just to understand how the touch screen works.