Method hit twice when using the Enhanced Touch, Simulator and Simulate Touch
Can anyone please tell me why, when using Enhanced touch with Simulator and the Simulate Touch with mouse set the following code gets hit twice? I have looked everywhere and am at a loss as to how to work around the issue. Thank you in advance.
void Update()
{
if (Touch.fingers.Count > 0)
{
if (Touch.fingers[0\].isActive)
{
Touch myTouch = Touch.activeTouches[0\];
\#if UNITY_EDITOR
if (myTouch.screenPosition.x == Mathf.Infinity)
return;
\#endif
DetectHit(myTouch.screenPosition);
}
}
}
https://redd.it/1qkmpsf
@r_Unity3D
Can anyone please tell me why, when using Enhanced touch with Simulator and the Simulate Touch with mouse set the following code gets hit twice? I have looked everywhere and am at a loss as to how to work around the issue. Thank you in advance.
void Update()
{
if (Touch.fingers.Count > 0)
{
if (Touch.fingers[0\].isActive)
{
Touch myTouch = Touch.activeTouches[0\];
\#if UNITY_EDITOR
if (myTouch.screenPosition.x == Mathf.Infinity)
return;
\#endif
DetectHit(myTouch.screenPosition);
}
}
}
https://redd.it/1qkmpsf
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Is there any free app i can create my own my 2D character and animate it (template avaliable preferred)
https://redd.it/1qkpzwg
@r_Unity3D
https://redd.it/1qkpzwg
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
This media is not supported in your browser
VIEW IN TELEGRAM
We’re making a medieval pinball game with roguelite deckbuilding – our free demo is now out on Steam!
https://redd.it/1qkrbdp
@r_Unity3D
https://redd.it/1qkrbdp
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
What do you think about the idea of a cooperative horror inspired by portals?
Except instead of a portal, it’s a door to other worlds inhabited by terrifying creatures.
I’m launching the first major playtest and would really appreciate your attention.
https://redd.it/1qkws4k
@r_Unity3D
Except instead of a portal, it’s a door to other worlds inhabited by terrifying creatures.
I’m launching the first major playtest and would really appreciate your attention.
https://redd.it/1qkws4k
@r_Unity3D
My cozy typing game where you grow a garden on a keyboard has a demo out on steam. For both PC and Mac.
https://www.reddit.com/gallery/1qky8rj
https://redd.it/1qky988
@r_Unity3D
https://www.reddit.com/gallery/1qky8rj
https://redd.it/1qky988
@r_Unity3D
Reddit
From the cozygames community on Reddit: My cozy typing game where you grow a garden on a keyboard has a demo out on steam. For…
Explore this post and more from the cozygames community
Made my first devlog!
Hey good people of reddit,
This past month I've been getting into game development. As a complete noob in coding and art, I decided to document my journey through devlogs. Tonight, I uploaded my first ever devlog, and video, to YouTube. It feels pretty exciting to finish something.
I wont be posting a link or anything, I dont wanna be that guy. Lets just hope it gets pushed in the right direction of the algorithm :).
From time to time, I'll try to make a post on here to keep you guys posted on my games progress. If you're really eager to watch, PM me to get the video.
Have a good friday and cheers!
https://redd.it/1ql3rrw
@r_Unity3D
Hey good people of reddit,
This past month I've been getting into game development. As a complete noob in coding and art, I decided to document my journey through devlogs. Tonight, I uploaded my first ever devlog, and video, to YouTube. It feels pretty exciting to finish something.
I wont be posting a link or anything, I dont wanna be that guy. Lets just hope it gets pushed in the right direction of the algorithm :).
From time to time, I'll try to make a post on here to keep you guys posted on my games progress. If you're really eager to watch, PM me to get the video.
Have a good friday and cheers!
https://redd.it/1ql3rrw
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Getting Ultima Online's Open World Running in Unity
https://youtu.be/jrBryt3RyCk?si=t4l3YjxdPu_-RZUP
https://redd.it/1qkw1dy
@r_Unity3D
https://youtu.be/jrBryt3RyCk?si=t4l3YjxdPu_-RZUP
https://redd.it/1qkw1dy
@r_Unity3D
YouTube
Getting Ultima Online's Open World Running in Unity
I show off my latest iteration of my reimagined Ultima Online game while attempting to make it somewhat educational this time.
I made a Photoshop-style "Drag & Pull" Guide system for Unity 2D (50% Launch Discount)
https://redd.it/1qlkuzu
@r_Unity3D
https://redd.it/1qlkuzu
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
Real fireworks rocket vs frozen river ice - ice explosion in our Unity game!
https://redd.it/1qlxb1m
@r_Unity3D
https://redd.it/1qlxb1m
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Metaball dome shields in Unity 2D (URP) - slimes merge shields when close
https://redd.it/1qm36ke
@r_Unity3D
https://redd.it/1qm36ke
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
Working on a 2 player coop game where you play as two lumberjacks standing on a log and rolling it together
https://redd.it/1qqkp8x
@r_Unity3D
https://redd.it/1qqkp8x
@r_Unity3D
Novice here, how do you guys use the New Input System
now i've been making small-scale games for about a year and have never really used the new input system (I also hadn't bothered updating unity for a while so only started using unity 6 about 4 months ago) and I really haven't worked with it much. Now that I'm starting to make a larger game (a 2d zelda style game), I tried looking into using the unity NIS and it has been a struggle. I've kinda gotten overwhelmed and all the tutorials I find seem to have a different way of explaining how to do the same thing without actually explaining why they do one thing the one way and I haven't found a good explanation on how each of these systems work. (except for the inputmaps, I have that down but the programming side is my issue) So far I have made 2 different top down player movement systems (no reason why one is better than the other) and mouse tracking but that is about it.
So do you guys have any good tutorials or explanations you guys can point me towards because I'm unsure whether its just a comprehension issue, bad searches or if I'm just doing it all wrong.
https://redd.it/1qqvl2j
@r_Unity3D
now i've been making small-scale games for about a year and have never really used the new input system (I also hadn't bothered updating unity for a while so only started using unity 6 about 4 months ago) and I really haven't worked with it much. Now that I'm starting to make a larger game (a 2d zelda style game), I tried looking into using the unity NIS and it has been a struggle. I've kinda gotten overwhelmed and all the tutorials I find seem to have a different way of explaining how to do the same thing without actually explaining why they do one thing the one way and I haven't found a good explanation on how each of these systems work. (except for the inputmaps, I have that down but the programming side is my issue) So far I have made 2 different top down player movement systems (no reason why one is better than the other) and mouse tracking but that is about it.
So do you guys have any good tutorials or explanations you guys can point me towards because I'm unsure whether its just a comprehension issue, bad searches or if I'm just doing it all wrong.
https://redd.it/1qqvl2j
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community