Тёмный

Function and Macro Libraries 

The Game Dev Cave
Подписаться 21 тыс.
Просмотров 1,9 тыс.
50% 1

There's a lot of side functionality and quality of life things in unreal engine. One of which is the ability to make macro libraries and function libraries. Today we'll take a look at both of them, how the differ and what use you can put both of them to!
Join the discord for any help you need! : / discord
Join this channel to get access to perks:
/ @thegamedevcave
support the channel and development over on patreon : / thegamingcaves
Get personalized Coaching : www.fiverr.com...

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

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@jesusofamerica7043
@jesusofamerica7043 6 месяцев назад
My dude, greetings from Canada. You are the best teacher I could have ever found. Not only do you describe things plainly and in terms anyone can understand, but you also explain that there are other valid methods too, and encourage ourselves to practise around. You don't just say "Ok do this. Don't ask why. Now add this. Don't worry about what that does" like some of the channels here I won't name. They show you how to create something that is good for exactly one situation with no scalability. Not the case here. I'm so happy I found your channel, it has been beyond helpful and even goes into subjects I would never have thought of or had no idea even existed. Hard VS Soft refences? What the hell is that and why haven't I heard about it? Well now I know, and I'm absolutely going to remember it. The most friendly and pleasant experience I've and I cannot state this enough. Never ever stop!! I never ever do the comment thing but I really just needed to tell you how much of a huge figure you've become for me.
@GeneralWolfie
@GeneralWolfie 2 месяца назад
This 100% Finally some explanation of systems instead of brainless drivel... I get done watching one of these videos and I have a new skill to implement instead of 10,000 questions. Thanks for the expert content!
@segfault4568
@segfault4568 6 месяцев назад
Another cool feature of Macros is you can use Nodes which you can't use inside functions, these includes things like Timelines, Delay nodes and other latent nodes(If I am not mistaken), which is why I only ever used Macros in unreal engine other than that Blueprint Function library is far more superior in every sense. As for C++ I read somewhere that although Unreal uses a lot of macros for reflection system but it is recommended to use inline functions instead of macros for gameplay related purposes.
@thegamedevcave
@thegamedevcave 6 месяцев назад
I have a video coming soon similar to this that talks about events vs functions. originally it also talked about macros but I decided to make this video instead. Since macros are just a set of nodes collapsed into 1 node to re-use it's really just the same as copying over a bunch of nodes whenever you use a macro. Important to note though that macro's don't really replace either events or functions, inside a single blueprint, they're super useful but i don't think they can't be called from another class like a function or an event can.
@joel-BB
@joel-BB 6 месяцев назад
great video please keep em coming! I don't really understand the point of macro libraries though. For function libraries it makes sense a bunch of generic functions that you might need all over your project ezpz. But for macro libraries if it needs to inherit from a particular class anyway whats the point of not just throwing the macros directly in the parent class?
@thegamedevcave
@thegamedevcave 6 месяцев назад
let's say you have 50 different characters in your game. maybe 20 of course are one branch of child classes, and then 10 of them are a whole separate branch of child classes, a handful directly inherit from character and so on. in those cases making a macro library for character will allow you to use those macros inside all of your 50 different child characters. when you make a macro library any class of that type in your project, as well as classes that are children of it will be able to use it. (specifically with classes that the engine provides like actor/pawn/character and so on, because you really dont want to go in and edit those)
@thegamedevcave
@thegamedevcave 6 месяцев назад
to add to that comment, i just had to check real quick, macros only exist inside the class you make them for, not any of it's child classes.
@joel-BB
@joel-BB 6 месяцев назад
@@thegamedevcaveYeah that makes sense actually thank you!
Далее
The Most Valuable File Format You've Never Heard Of
15:33
CORTE DE CABELO RADICAL
00:59
Просмотров 2 млн
Unreal Engine : Events V.S. Functions
14:35
Просмотров 1,5 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 81 тыс.
Unreal Engine Features EVERYONE Should Know
25:20
Просмотров 1,7 тыс.
How to Make WALL JUMPING in Unreal Engine
13:23
Просмотров 5 тыс.
Why Slopes are Shockingly Difficult for Indie Game Devs
17:20