using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class Touchpadfixed : MonoBehaviour, IPointerDownHandler, IPointerUpHandler { public void OnPointerDown(PointerEventData eventData) { Pressed = true; pointerId = eventData.pointerId; PointerOld = eventData.position; } public void OnPointerUp(PointerEventData eventData) { Pressed = false; } [HideInInspector] public Vector2 TouchDist; [HideInInspector] public Vector2 PointerOld; [HideInInspector] protected int pointerId; [HideInInspector] public bool Pressed; void Start() {
This is incredibly useful and the codework is simple, is there any way you can make a guide about applying footsteps that is compatible with your code?
Can't add script component 'TouchController' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match. this is shown by unity
hello i am facing a problem in camera rotation it is not rotating in y-axis it is only rotating x-axis when ever i move camera in yaxis during play it start shaking just like it wants to move but unable to move kindly help me plz
Hello! Great But I'm Facing Problem that the camera is moving but with refrance to mouse pointer even if i don't click and move like you are doing. So what can i do Now
thank you brother. please also WRITE the scripts in comment section (if you want to) bcoz your downloadable files are not opening. It means a lot bro. thanks for your help.
hermano, tienes que ver un video sobre cómo optimizar la calidad en youtube y configurar este código según tu sentido. Application.targetFrameRate = 60f;
bro, using both joystick and screen is making a glitchy effect i have tested it multiple times and my result comes out that by giving 2 touch inputs this glitch is triggered 1 input inside the area designated for moving screen and another input outside the area (doesnt matter if its joystick or something else) i need the solution , i have been doing non stop reseach from 3 days
You can do it thanks for saving my lot of time hats off you bro
thank 's bro I was serching for such tutorial from a month
You are welcome♥
Thank you! You saved me a lot of time by leaving scripts in the description.
兄弟感谢你,终于找到了完美的触摸方法
Translate:Brother, thank you for finding the perfect way to touch.
Thanks Bro I watch About 100 video but You are the Best /''/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class Touchpadfixed : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
public void OnPointerDown(PointerEventData eventData)
{
Pressed = true;
pointerId = eventData.pointerId;
PointerOld = eventData.position;
}
public void OnPointerUp(PointerEventData eventData)
{
Pressed = false;
}
[HideInInspector]
public Vector2 TouchDist;
[HideInInspector]
public Vector2 PointerOld;
[HideInInspector]
protected int pointerId;
[HideInInspector]
public bool Pressed;
void Start()
{
}
void Update()
{
if (Pressed)
{
if(pointerId >= 0 && pointerId < Input.touches.Length)
{
TouchDist = Input.touches[pointerId].position - PointerOld;
PointerOld = Input.touches[pointerId].position;
}
else
{
TouchDist = new Vector2(Input.mousePosition.x, Input.mousePosition.y) - PointerOld;
PointerOld = Input.mousePosition;
}
}
else
{
TouchDist = new Vector2();
}
}
}
thanks bro for provide the code ♥♥
thanks man
Thankyou So Much❤❤❤❤
THANK YOU BRO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!♾
nice bro you are my herooooooooooooooooo................
This is incredibly useful and the codework is simple, is there any way you can make a guide about applying footsteps that is compatible with your code?
Osm
Thanks
Nice man
You deserve more subscribers..
🤩
Love You ♥
sorry about lately messages♥♥
you are extremely underrated
Can't add script component 'TouchController' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.
this is shown by unity
Thank You... This Is Good Tutorial
Please make tutorial for switching camera view, like zoom in, and back to default view, with the touch, thanks in advance ❤
thanks new subscriber 😊😊😊
Thanks a million bro
i love you ♥
sorry about lately messages♥♥
hello i am facing a problem in camera rotation it is not rotating in y-axis it is only rotating x-axis when ever i move camera in yaxis during play it start shaking just like it wants to move but unable to move kindly help me plz
bro send me email and explain your problem with picture♥
sorry about lately messages♥♥
I am waiting for your video
Thank you for waiting ♥
Thank you so much 😊
You're welcome 😊♥
public CameraLook _CameraLook; not working...
CameraLook CS0246 error
bro watch video again install unity 2020 upper and send me email and explain your problem with picture♥
sorry about lately messages♥♥
Thanks Bro!!
Thx
Hello! Great But I'm Facing Problem that the camera is moving but with refrance to mouse pointer even if i don't click and move like you are doing. So what can i do Now
Thanks bro you solved my problem❤❤
I am glad that your problem is solved ♥♥😍
thank you brother. please also WRITE the scripts in comment section (if you want to) bcoz your downloadable files are not opening. It means a lot bro. thanks for your help.
bro , the download links are ok , please try again ♥
Thank you so much
i love you ♥
sorry about lately messages♥♥
When I tun my camera in x axis the whole player body start spinning continuously please help me
Mobile game control videos ate rare in youtube
I agree with you ♥👌
Why my camera is always rotate if i press both joystick and camera screen?
my bro please watch video again and download the script in bio♥
sorry about lately messages♥♥
Same
How can we make touch input field for unity new input system? Pleeeeeassssseeee help!!!!
Where gravitation?
make a video for making a drivable car like gta,.............. love from bangladesh
of course♥
sorry about lately messages♥♥
How i use this on terrain ?
watch this : th-cam.com/video/KWtb1QPWD-s/w-d-xo.html
i want for TPS so what modificaction i will need to do ? please reply
I will make this tutorial so please waiting♥
Hrmno tengo un problema, cuando lo testeo con el unity remote desde mí celu se ve tdo pixelado como cn mala calidad y anda lag que puedo hacer?
hermano, tienes que ver un video sobre cómo optimizar la calidad en youtube y configurar este código según tu sentido.
Application.targetFrameRate = 60f;
its normal, in real phone all be ok
bro,
using both joystick and screen is making a glitchy effect
i have tested it multiple times and my result comes out that by giving 2 touch inputs this glitch is triggered
1 input inside the area designated for moving screen
and another input outside the area (doesnt matter if its joystick or something else)
i need the solution , i have been doing non stop reseach from 3 days
Make sure that the touch input area is not overlaying the joystick area this might be causing the glitchy effect...
can you make a tutorial of making tps camera touch please
i do my beast ♥
sorry about lately messages♥♥
There is no vertical movement you cannot look up and down
You forgot to put the PlayerBody in the CameraLook script
how to make this become third person
bro FixedTouchFiled not add to touch screen compiler error
bro send me email and explain your problem with picture♥
sorry about lately messages♥♥
Y look axis is not working, what can I do?
bro , please watch video again and download the code from description
and sorry about lately messages♥♥
@@NikiGame-Unity I solved the problem thank you
@@SuperM0rio hello how did you solve that problem
Bro its showing No MonoBehaviour scripts in the file
bro send me email and explain your problem with picture♥
sorry about lately messages♥♥
Hey my controller is not working
The same
You must have failed in some step, you forgot something, because it worked perfectly for me until today.
HI MY PLAYER IS ABLE TO LOOK HORIZONTALLY BUT NOT VERTICALLY SO CAN YOU HELP ME TO MAKE MY PLAYER LOOK VERTICALLY
Bro the player move script have error
Baixa o do link e coloca lá
bro thirdperson pls
Already uploaded : th-cam.com/video/pD02QlBxa0I/w-d-xo.html
dude, can you write script in comments, please?
Bro, please check the description.
Check the download link.