Code Monkey home page Code Monkey logo

implementing-touch-with-the-new-input-system's Introduction

View the entire tutorial on GameDev Resources.

Implement Touch with the new Input System

This tutorial was created with Unity version 2019.4.

User input is a core pillar of an interactive and engaging experience. Once you collect it, it's important you present an experience that feels natural and intuitive to the player. In this tutorial, you'll cover the basics of the new Unity Input System by creating a demo project that can:

  • Place a 3D model by dragging it off the User Interface (UI) and dropping it into the world.
  • Move the camera by dragging one finger.
  • Zoom the camera by pinching two fingers.

Demo of Final Result

Learning Outcomes

You'll learn how to:

  • Install the new Input System's package.
  • Enable Touch Simulation mode.
  • Collect and process touch input via the EnhancedTouch API.
  • Route Input System events to the UI.

Prerequisites

  1. This tutorial assumes you already have basic knowledge of Unity and intermediate knowledge of C#.
  2. You need Unity 2019.4 or later to follow along with this tutorial.
  3. While you can enable simulation mode for testing, the behavior is unpredictable and only simulates a single touch. As a result, you also need a touch device to complete this tutorial.

Resources

  1. Comments, concerns and/or questions can be posted here.
  2. Check out How to make a configurable camera with the new Unity Input System if you want to learn more about Action Assets. You'll build the camera rig used in this tutorial from scratch.
  3. You can also check out Inventory and Store System - Part 3 (Creating the Store UI) for a deeper look at the UI system.
  4. Input System documentation and GitHub repository.
  5. The models in this tutorial are from What Up Games, LLC and the UI icons are from Game-Icons.net.

implementing-touch-with-the-new-input-system's People

Contributors

yecats avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.