How to... Common Function Library

Поделиться
HTML-код
  • Опубликовано: 21 авг 2022
  • How to use a function library? What are some recommended common functions? How to make getting references quicker?
    Welcome to How to... a snack-size video for a snack-size question in Unreal Engine 4.
    SUPPORT ME
    Patreon I / ryanlaley
    Buy Me a Coffee I buymeacoffee.com/RyanLaley
    Donations I paypal.me/ryanlaley
    PRIVATE 1-2-1 SESSIONS
    Email me at support@ryanlaley.com for more information and rates, or visit www.ryanlaley.com/learn-games-...
    JOIN THE COMMUNITY
    Discord I / discord
    FOLLOW ME
    Twitter I / ryanlaley
    Facebook I / ryanlaleygames
    Instagram I / ryanlaleygames

Комментарии • 14

  • @FPChris
    @FPChris 9 месяцев назад

    Awesome.

  • @FPChris
    @FPChris 9 месяцев назад

    1:39 is there a way to change the cast to a different BP later without have to fix everything that referenced that original cast?

  • @Smile1oasis
    @Smile1oasis Год назад +1

    Wonderful, thank you for the tip! 😇

  • @KutsalKurt
    @KutsalKurt Год назад +1

    Thanks!

  • @TheFatTonny
    @TheFatTonny Год назад

    Hello, great video - should we somehow handle the cast failed branch in these cases?

    • @AerixArtGames
      @AerixArtGames Год назад

      You could definitely run an is valid check within certain functions to see if the reference is accessible, and then branch off that way inside the function you are doing it in, in your library. It’s a good way to minimize errors and at the same time keep track of valid references.

  • @vsevolodmetelsky1275
    @vsevolodmetelsky1275 Год назад

    So it's basically like extensions methods in Unity\C#. Nice video, great timing: I was just about to go and look for something like this. Thank you!
    P. S. Do you think it's possible to create a ForEach node for a Map? I'd like to have one so I could iterate though Map just as easy as I can do it with Array.

  • @jorbascrumps
    @jorbascrumps Год назад

    Nice tip. I just used this to make a box and line trace utility function.

  • @michaellutz4154
    @michaellutz4154 Год назад +1

    So can I use this I place of setting up player reffs in all my blueprints

    • @AerixArtGames
      @AerixArtGames Год назад +2

      Yes, you can create a function in your function library like Ryan did in the video, but instead just cast to your character class and then output it’s reference in that function. Then you can use in any blueprint throughout your project.

  • @Warmaster2143
    @Warmaster2143 Год назад +3

    You could also use a BP Interface to get access to something

    • @sharuru01
      @sharuru01 Год назад +2

      I'm using more and more BP Interfaces. It's a more elegant way to interact with multiple actor instead of creating Thousands of "Cast Fail" Chain. Although, I use the BP Function Library as well. It's a great way to use standardized functions within all your different BP. The same goes along with Macros Libraries.

    • @Warmaster2143
      @Warmaster2143 Год назад +1

      @@sharuru01 yea

  • @ntvzezestudio2132
    @ntvzezestudio2132 Год назад +1

    I would like to know if your courses are subtitled in Brazilian Portuguese. and if it would be possible to subtitle them into Brazilian Portuguese. here in brazil there is no this type of unreal engine 4 content.