Тёмный
No video :(

Functions, Macros & Events - #17 Unreal Engine 4 Blueprints Tutorial Series 

Virtus Learning Hub
Подписаться 237 тыс.
Просмотров 36 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@wink3319
@wink3319 4 года назад
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.
@pranprotim3932
@pranprotim3932 3 года назад
If you know so much, than why are you watching this tutorial lol 😂
@themainfandom1499
@themainfandom1499 4 месяца назад
Thank you for the information. That’s quite useful to know ❤
@allashama
@allashama 3 года назад
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_Giver
@Love_Peace_Giver Год назад
Thank you! this makes it much better now
@EternalElir
@EternalElir 6 лет назад
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.
@rgv3858
@rgv3858 6 лет назад
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.
@ThimblewolfArt
@ThimblewolfArt 5 лет назад
I know I've said this before, but more practical examples would be really helpful.
@tcraigwilson
@tcraigwilson 5 лет назад
"Anyway, play around with these. Get used to them."
@shadowwalker7213
@shadowwalker7213 3 года назад
7:50 u can put the delay before the func one in the event btw , i still see no diff between them
@Compguy321
@Compguy321 5 лет назад
Good to know you can put a delay in a macro! Thanks!
@jacobmowers4868
@jacobmowers4868 6 лет назад
Every time I get the Udemy ads I literally start dying inside.
@owencoopersfx
@owencoopersfx 5 лет назад
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.
@beaurawbone1066
@beaurawbone1066 3 года назад
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.
@willlham1
@willlham1 3 года назад
@@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)
@renderraj
@renderraj 2 года назад
Thank you so much for the simple explanation.... I should have watched this a year ago..my life would have been easier :P
@VirtusEdu
@VirtusEdu 6 лет назад
Functions, Macros & events, all explained here... enjoy!
@jieflowers
@jieflowers 6 лет назад
NO link?
@kiewass
@kiewass 4 года назад
@@jieflowers Why? Its in the video.
@shanjeevan142
@shanjeevan142 4 года назад
Thank you
@andrelucas4473
@andrelucas4473 3 года назад
So... there's no difference between them? Only the time thing?
@kenn5213
@kenn5213 4 года назад
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)
@Fritz2824
@Fritz2824 3 года назад
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 ?
@kjkh3104
@kjkh3104 4 года назад
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?
@Cherter
@Cherter 6 лет назад
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
@dszvivian
@dszvivian 3 года назад
c++ vs blueprint?? is c++ even worth it ??
@sean8306
@sean8306 4 года назад
Good tutorial series, but practical examples would have been much appreciated and probably made it easier to understand.
@jameshancox9723
@jameshancox9723 2 года назад
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.
@cipriancristian9933
@cipriancristian9933 3 года назад
at the end police comes for him for explaining too good
@allashama
@allashama 3 года назад
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.
@petercsordas6722
@petercsordas6722 3 года назад
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?
@blackcloak666
@blackcloak666 3 года назад
Same issue here. Would be cool to know what causes this.
@DavidLavy
@DavidLavy 3 года назад
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.
@Strixluca
@Strixluca Год назад
2022🎉
@ramiru3264
@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.
@Gothdir
@Gothdir 4 года назад
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.
@zinetx
@zinetx 3 года назад
You should watch Blueprint Communications | Live Training | Unreal Engine from the official UE4 channel. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-EM_HYqQdToE.html
@DRAWKCABLLA
@DRAWKCABLLA 3 года назад
you fail to mention setting up the custom events. jeez
@Pac-bq2sn
@Pac-bq2sn 4 года назад
So sick of this intro and outro
Далее
The Fan’s Fang Skin🔥 | Brawl Stars Sneak Peek
00:16
The Playstyle So OP, Mojang Banned It 4 Times
13:54
Просмотров 192 тыс.
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 707 тыс.
Learning Unreal Engine in One Month to make a Game!
15:25
A new way to generate worlds (stitched WFC)
10:51
Просмотров 526 тыс.
The BEEFY mini PC - Minisforum AtomMan G7 PT
12:40
Просмотров 184 тыс.
Game Development for Noobs | Beginner Guide
12:01
Просмотров 862 тыс.