Function and Macro Libraries

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 8

  • @jesusofamerica7043
    @jesusofamerica7043 8 місяців тому +4

    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 4 місяці тому

      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 8 місяців тому

    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  8 місяців тому

      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 8 місяців тому

    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  8 місяців тому

      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  8 місяців тому

      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 8 місяців тому

      @@thegamedevcaveYeah that makes sense actually thank you!