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
Awesome.
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?
Wonderful, thank you for the tip! 😇
Thanks!
Hello, great video - should we somehow handle the cast failed branch in these cases?
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.
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.
Nice tip. I just used this to make a box and line trace utility function.
So can I use this I place of setting up player reffs in all my blueprints
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.
You could also use a BP Interface to get access to something
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.
@@sharuru01 yea
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.