Function, Macro and Custom Event in UE4 (Unreal engine blueprint tutorial 2021)

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ค. 2024
  • Everything you need to know about Functions, Macro and custom event in unreal engine 4.
    UE4 Blueprint tutorial for beginners 2021.
    00:00 Intro
    00:07 Function, Macro, Custom Event Overview
    01:47 Function demonstration (Deal damage based on velocity)
    06:51 Macro demonstration
    10:03 Custom Event demonstration
    Function
    - Can communicate
    - is processed only once
    - cheapest
    - demonstrate with velocity and DMG
    Macro
    - can't communicate
    - is processed every time
    - Can be used with delay and time
    - More Exec pins
    - demonstrate with Is score high enough?
    Custom Event
    - Can communicate
    - Most expensive
    All the Blueprints you should know:
    • Unreal engine blueprin...
    Patreon:
    / kampairaptor
    -----------------------------------------------
    Let's have a chat:
    DISCORD:
    / discord
    Instagram:
    / sir_fansi
    -----------------------------------------------
    For business opportunities, email me here: nevrela3d@gmail.com For project files and tutorial commissions:
    / kampairaptor
  • เกม

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

  • @Thoriumus
    @Thoriumus 3 ปีที่แล้ว +25

    I think you missed the main difference of functions, custom events and macros.
    A macro is nothing more then collapsed blueprint logic. When the blueprint is compiled the macro is resolved, meaning the nodes inside the macro actually become part of the blueprint script as if they where normally placed. The advantage is you can reuse them easily and they are less expensive than functions, not more expensive.
    Custom events and function can both be called from outside but the main difference of them is that functions are self contained in the sense that they can have return values and local variables, but can't use any timed nodes. While custom events are part of the main script and can't have any local logic or variables, but can use timed events. The main reason you want to use a function is if you need return values and/or if you want to have variables, which are only existing inside of the function. Which also means you can use them recursively.

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

      which is the less and the most expensive? and why?

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

      custom events can pass variables as well as dispatcher events

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

      @@chiboreache yes, but they cant have local variables and they cant pass return values. If you add return value it automatically becomes a function.

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

      @@Thoriumus for sure

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

      Thanks! Your explanation helped me now

  • @adamjensen253
    @adamjensen253 2 ปีที่แล้ว

    That was realy helpgul for me. thanks alot!

  • @colelindbom6012
    @colelindbom6012 3 ปีที่แล้ว

    I enjoy learning unreal from macklemore ;D seriously tho you do a great job

  • @chiboreache
    @chiboreache 2 ปีที่แล้ว

    macro can be called from macro library in any bp

  • @Mike-we7rt
    @Mike-we7rt 3 ปีที่แล้ว +1

    Hey I’ve been using unreal for VR and the hands always feel awkward when holding objects is there a way to reposition the hands when gripping?

    • @SirFansi
      @SirFansi  3 ปีที่แล้ว

      Check out VR expansion plugin, you have much more options to modify hands position there.
      th-cam.com/play/PLQAo6pRlrb_XZHKww9xkA_P0i5_Xs3usu.html

  • @N1coDe
    @N1coDe 3 ปีที่แล้ว

    Hi mate.
    I already watch lesson about this, but i want to see your video)

    • @SirFansi
      @SirFansi  3 ปีที่แล้ว

      Well, be my guest. xD

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

    Please speak slower... No point in doing tutorials if people can't understand what you're saying.