Skip to Content
Mastering UI Development with Unity
book

Mastering UI Development with Unity

by Dr. Ashley Godbold
April 2018
Beginner content levelBeginner
468 pages
11h 7m
English
Packt Publishing
Content preview from Mastering UI Development with Unity

Creating a floating eight-directional virtual analog stick

In this example, we will create a floating eight-directional virtual analog stick. First, we will create an eight-directional D-pad that simulates a control stick that moves in the direction the player drags:

Then, we will expand the eight-directional D-pad so that it is floating, which means it will not be visible in the scene until the player presses somewhere in the screen. Then it will appear where the player's thumb is located and perform the eight-direction movement based on the player's thumb dragging.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development with Unity for .NET Developers

Game Development with Unity for .NET Developers

Jiadong Chen
Unity UI Cookbook

Unity UI Cookbook

Francesco Sapio

Publisher Resources

ISBN: 9781787125520Supplemental Content