I like Virtus' videos a lot. However, here he forgot to pint something out: Functions and Events can be called from other Blueprints, Macros cannot. I find this difference important. Also, you can always add another event-graph and make it specific to the custom event if cleanliness is important.
@pranprotim39323 жыл бұрын
If you know so much, than why are you watching this tutorial lol 😂
@themainfandom14999 ай бұрын
Thank you for the information. That’s quite useful to know ❤
@SoohNabis3 жыл бұрын
Let's clarify something for people who will read this message! Using a CustomEvent, you can hide your entire code in a '' Collapse Node '' if you select your entire code except the CustomEvent, and right click, you'll see '' Collapse Node ''. Click it and it will collapse your entire code in a simple node. Really clean if you use Collapse Node!
@Love_Peace_Giver2 жыл бұрын
Thank you! this makes it much better now
@shadowwalker72134 жыл бұрын
7:50 u can put the delay before the func one in the event btw , i still see no diff between them
@rgv38586 жыл бұрын
Thanks so much but... When to use each of them? I think you had to talk about delegated or observer pattern, according to the events use. Moreover, I think you can use delays and time managing in functions without context sensitive.
@EternalElir6 жыл бұрын
Neat intro to the concepts, but this video had very little information on why you would use one over the other. Just going by the video, I see no reason to ever use functions in the off chance I might want to add a delay node. It also looked like you had more flexibility to use inputs and outputs with macros, but that functions did not offer that ability. While I haven't confirmed as much, I imagine the events are the best form of triggering a set of blueprint code from external sources or other blocks of graph work. You send the event from an external source, have the object receive the event, and then have the event trigger code, or even a function or macro. Using events inside the same graph seems like a good way to organize your graph to avoid having connections string over large distances.
@ThimblewolfArt5 жыл бұрын
I know I've said this before, but more practical examples would be really helpful.
@Compguy3216 жыл бұрын
Good to know you can put a delay in a macro! Thanks!
@renderraj3 жыл бұрын
Thank you so much for the simple explanation.... I should have watched this a year ago..my life would have been easier :P
@Fritz28243 жыл бұрын
i want to do a function calculating A - B , and return the value. i think we cant do that with function, but with macro theres output node ?
@kjkh31044 жыл бұрын
Do functions not allow only time related nodes that are given by default by ue4? What if I program in c++ my own time related function and use it there as a node, how can it possibly know it is time related?
@andrelucas44733 жыл бұрын
So... there's no difference between them? Only the time thing?
@tcraigwilson6 жыл бұрын
"Anyway, play around with these. Get used to them."
@kenn52134 жыл бұрын
you cant add the delay in the function, but can you add the delay in the event before calling that function? (it seems like you could)
@VirtusEdu6 жыл бұрын
Functions, Macros & events, all explained here... enjoy!
@jieflowers6 жыл бұрын
NO link?
@kiewass4 жыл бұрын
@@jieflowers Why? Its in the video.
@jameshancox97232 жыл бұрын
Please could someone help , I would like to use a button in a UI on unreal 4.27 that has 3 functional uses, clicked , hold and release any advice would be amazing.
@jacobmowers48686 жыл бұрын
Every time I get the Udemy ads I literally start dying inside.
@shanjeevan1424 жыл бұрын
Thank you
@owencoopersfx5 жыл бұрын
Like many of you I found this video slightly helpful, but mostly lacking in the information I was seeking, which is: why use a function vs. a macro? There isn’t any advantage to using a function over a macro that I can easily tell. I’m just guessing that best practice is to use macros only when a function can’t serve the same purpose (like when you need two execution inputs), but still don’t really know why.
@beaurawbone10664 жыл бұрын
Hey I'm completely new to UE 4... as in I've been learning it for less than a week now so do you think you could explain what Functions and Macros even do? I didn't really get that from the video :( If it's too complicated to explain just an example of when you use them would be fine too. Thx if you reply.
@willlham13 жыл бұрын
@@beaurawbone1066 from my experience you would create a function for code that you would repeat a lot or would like to use in another blueprint. For example you could create a take damage function on your player. Let's say you have survival mechanics and when you reach 100 hunger, you start to take damage. You could also have enemies that can shoot at you and damage you, for this you could cast to your player and use the take damage function in the enemy BP to let them damage your player. Macros are usually used I believe to tidy up code (although functions can do the same) and can only be used inside of the class you're in. I'm pretty sure I've read that you can run multiple execution pins as well so could have the option to change your code dynamically depending on what pin you use. Events are similar to functions in how they can be calling publicly in other classes but you can also use event dispatchers with events which I don't fully understand myself but they basically listen out for the event and can run code when that event fires. So for example when you pick up an item you could have an event dispatcher that tells another class you've picked up the item (Like for a quest)
@dszvivian3 жыл бұрын
c++ vs blueprint?? is c++ even worth it ??
@petercsordas67224 жыл бұрын
Why every loop prints for me 2 times? begin play for loop index:0 index: 4 print event and then it prints: event event event event event event event event whats the problem?
@Kunaj_84 жыл бұрын
Same issue here. Would be cool to know what causes this.
@DavidLavy3 жыл бұрын
I actually think I know why. You may have two TutorialCharacters in your workspace. If you play it you can see there's two of them. But when you stop it you can only see one. I don't know why you can't see the other one, but if you delete the one that's visible the loop should run just once.
@Cherter6 жыл бұрын
Hey this comment doesnt really relate to this video but its ur most recent so i figured u would see it if i posted here. Ive been watching ur videos and they have helped me so much to create my very first game and i have made so much progress with ur help so thanks because i couldnt have done it without u. Now as i come to the final bits of finishing my first game i watched ur video on the day and night cycle and was able to get that working however the default sun that flies over the sky as the cycle goes doesnt fit the theme of my game and i was wondering if there was any way to change the look of the sun to something custom so i could have it better fit the art style of my game. Thanks
@sean83064 жыл бұрын
Good tutorial series, but practical examples would have been much appreciated and probably made it easier to understand.
@squirrelgrease4 жыл бұрын
at the end police comes for him for explaining too good
@SoohNabis3 жыл бұрын
I personnaly doesnt see any interest to use a macro or a function when i can use a customEvent and write my code and '' Collapse Node '' it when it's done! it's only a preferred choice. 3 options are great but CustomEvent can do all of them.
@Strixluca2 жыл бұрын
2022🎉
@ramiru3264 Жыл бұрын
Okay, I have been watching since the first video in the series but this one has gone south. As others say, you should use a more specific example for every functionality.
@Gothdir4 жыл бұрын
I like the effort but I feel a lot of those videos dont have enough basic information and this video is very basic. Im at video 14 now and I still wonder if all the variables can be called globablly. I feel like the video should 5 minutes longer to explain things ina little more detail.
@zinetx4 жыл бұрын
You should watch Blueprint Communications | Live Training | Unreal Engine from the official UE4 channel. kzbin.info/www/bejne/e37CeYynhsmHpac
@DRAWKCABLLA3 жыл бұрын
you fail to mention setting up the custom events. jeez