Custom Mobile Zoom Gesture Event - Unreal Engine 5 Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

ความคิดเห็น • 19

  • @xenocreatives6456
    @xenocreatives6456 หลายเดือนก่อน

    Nice!!!!! are you going to make a rotate gesture event? thanks

  • @zarakilian
    @zarakilian ปีที่แล้ว +1

    Hey thanks for the awesome tutorial! But After updating to new UE 5.3.1 this functionality broke now, but I have not been able to figure out why the event tick is not picking up the constant change of the mouse or finger position anymore? It worked before.

    • @peanut_games
      @peanut_games  ปีที่แล้ว +1

      Oh no lol, I haven't even updated to 5.3.1 myself. I'll have to investigate, thanks for pointing it out.

    • @zarakilian
      @zarakilian ปีที่แล้ว

      @@peanut_games ah ok cool, thanks! Please let me know if you figure it out :)

    • @peanut_games
      @peanut_games  ปีที่แล้ว

      @@zarakilian ​ @zarakilian They also just royally screwed one of my assets on the marketplace, they're deprecating player mappable input configs - sure, but the replacement system "Enhanced Input User Settings", first of all, needs to be activated in project settings ( assets with modified project settings usually need to be sold as a complete project vs an addition to existing projects ), plus is 'experimental' and seems super flaky. Old core functions aren't just deprecated they're completely void, the ones carried over from older projects cannot be copied and they return null values...
      In terms of the camera controls, I guess they decided Triggered will only fire once all of a sudden? So now we'll have to send off the Triggered input to a looping event, timeline or tick. I'm hoping it'll still work to get the input value using the get node for the action, just type in the name of the input action, otherwise you'll have to use Get Input Touch State or Get Mouse Position. 😣
      Edit: Do you also have Use Mouse for Touch ticked in project settings? May be related

    • @zarakilian
      @zarakilian ปีที่แล้ว

      @@peanut_games Thanks for the Reply! Yeah I have "Use Mouse for Touch" ticked. I see it does work when that is disabled, but then that means the touch functionality is not working which is not great :( I've been playing around to use the Tick to update the Camera spring arm length but I can't seem to get the touch part working.
      Edit: So the Touch 1 - Touch 2 is not working even with Event Tick. I am quite baffled.
      Sorry to hear about your Marketplace asset!

    • @peanut_games
      @peanut_games  ปีที่แล้ว

      @@zarakilian I spent a few days and got it figured out lol, just not sure why they didn't default that setting to enabled seeing as they're pushing towards enhanced input as the system to use. I decided not to worry about the camera thing, have you plugged in a touch device to UE5? It works on my galaxy s10+ just fine, and for mouse input, just use mouse inputs. Use Mouse for Touch is pretty much just for development. Still strange that they broke it... If you were adamant though, I'd try using a node calling Start Continuous Input Injection for Action/Player Mapping - something new I noticed.

  • @ff7522
    @ff7522 8 หลายเดือนก่อน

    Working on 5.3.2 Many thanks!

  • @ulafilms9010
    @ulafilms9010 8 หลายเดือนก่อน +1

    This video is exactly what I needed. Really appreciate the clarity of the code and concept as you build and explain what's going on. Got to the end of the video before I realized you actually sell the code on the marketplace. I'll be using this tutorial to learn what you'd done to get the touch working so well, but I plan on just buying your asset from the store now. $20 is well worth the hours of time it would take me to build this half as well.
    How's your marketplace Advanced Mobile Camera Enhanced Input BP asset working in 5.3.2, btw? Any issues I should be aware of before buying?
    Thanks again for the content, top notch.

    • @peanut_games
      @peanut_games  8 หลายเดือนก่อน +1

      Awesome, I'm glad to hear it helped. The marketplace asset is a lot more expansive with other gestures included too. 5.3 kind of messed it up but not too bad - Epic deprecated Player Mappable Input Configs so I decided to use a Data Table instead so that now acts as the configs which are just collections of Input Mapping Contexts.
      One thing to note is it is intended for a third-person character with a spring arm, and any of your existing Input Mapping Contexts should be moved to the config so the component can handle them, some movement is included too so just check for duplicates with your own, I'd suggest building all input off the prefab configs.
      Of course if you have any trouble you can email me ( it's on my marketplace profile ), or message here. 🙂

  • @maxhopnik2229
    @maxhopnik2229 6 หลายเดือนก่อน

    Thx for tutuorial and a few jokes , that helps hold attention

  • @konstantinpyshnoy1502
    @konstantinpyshnoy1502 3 หลายเดือนก่อน

    Thx for video!

  • @aufgespielt3768
    @aufgespielt3768 ปีที่แล้ว

    Hi! Thanks for the Video! One short Question. Is the Enhanced Input Action Funktion only usable in a Player Component? I would be use it in a Game Controller Component, but it seems not to work :/ Thanks.

    • @peanut_games
      @peanut_games  ปีที่แล้ว +1

      Enhanced Input can be used anywhere with an Event Graph, even the level blueprint, as long as you call "Add Player Mappable Config" / "Add Player Mapping Context" *somewhere*. If in a player controller, then use the OnPossess event. Check out my first Enhanced Input video for setting it up. Thanks for watching :)

  • @jackrobin9829
    @jackrobin9829 6 หลายเดือนก่อน

    good tuorial bro

  • @qiu1227
    @qiu1227 9 หลายเดือนก่อน

    Thanks a lot

  • @grimonnix7221
    @grimonnix7221 9 หลายเดือนก่อน

    Open any unreal tutorial to learn something and it is using blueprint, so frustrating, dont know if you guys even care about c++

  • @jihoPark-k5e
    @jihoPark-k5e ปีที่แล้ว

    hello. I have implemented an image on top of a widget and implemented zoom, now I found a tutorial about gestures to create that behavior on a portable monitor with touch and what you wrote is very good and works in my newly created project. But I have a problem. When I try to get the touch state above the widget, I get a 0 vector. What could be the problem and any help would be greatly appreciated.🥲

    • @peanut_games
      @peanut_games  ปีที่แล้ว

      Widgets consume click and touch input so the only way I know of to allow it to pass through is to set the widget element's visibility setting to Not Hit-Testable