TOUCH CONTROLS in Unity!

preview_player
Показать описание
Let's learn how to make touch controls in Unity!

····················································································

········································­­·······································­·­····

► All content by Brackeys is 100% free. We believe that education should be available for everyone.

········································­­·······································­·­····

♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound
Рекомендации по теме
Комментарии
Автор

4:31 ”after all you do have five fingers”

Me with ten fingers: confused screaming

David-vzyk
Автор

I'm gona miss awesome videos like this. This was the only channel that answered all my questions in a short and simple video.

MicMan
Автор

Simply amazing! Whenever i'm stuck with something, there is always a Brackeys tutorial waiting to help me out! Thank You!

Gathrey
Автор

Actual reason to buy pro, *dark theme*

beaujanssen
Автор

Brackeys is the best if u want to learn anything on unity

_game_x
Автор

Dude, are you a psychic? I was just talking to my friend about a phone app he wants to make and here you come out with a tutorial which I can use to build the idea in Unity. Nice work!

jirue
Автор

Watched many of your tutorial, just realize that your Visual Studio font setting is arranged in such way that is easy for us to read it... (ie ; should be big and bulky on your real monitor). Thanks Brackeys !

ysundawa
Автор

Thanks for this, few extra things I found that weren't very obvious: 'ScreenToWorldPoint' only works when camera is in orthographic view coz of z depth. Also if you can't see debug.drawline in game view, make sure 'selection wire' is enabled in scene view and camera near clipping mask is set to 0 else you wont be able to see it.

nelzster
Автор

Plz do more about mobile and optimization sir
Because I trust you

mygames
Автор

Brackeys videos still helping me to this day, it's like Brackey is immortal in our hearts.

foreducation
Автор

Thank you sir, i was struggling with touch controls for 2 days, this video came like a blessing XD

alin
Автор

Every video that I watch I keep remembering when I just found you in like 2013, with the survival game tutorial. You came a long way

JadenAccord
Автор

$125 per month...

I can barely afford internet.

scxlez
Автор

At last Omg I've been waiting for this for a long time thank you guys

alpersaritas
Автор

This channel is like the Enlightenment tree for me, respect Sensei!!

Lelouchishere
Автор

SOURCE CODE:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Movement : MonoBehaviour
{
void Update ()
{
if (Input.touchCount > 0)
{
Touch touch = Input.GetTouch(0);
Vector3 touchPosition =
touchPosition.z = 0f;
transform.position = touchPosition;
}
}
}

kmmmnnrlecris
Автор

I busted my back for three days working on my controls with a swipe 3rd person camera
And when i finished you decided to upload a video about touch controlls
I feel so stupid 😂
Keep up the good work 🌷

soulage
Автор

Thank you man!! I got a job because of you!)

pekarnik
Автор

The only tutorial that made sense to me. Maybe I am now used to a bit of coding... I always avoided touch controls every since i started messing around with unity. Thank you so much.

raverecage
Автор

Finally, *_a sponser that makes sense_*

DillyzThe