UE Blueprint Fundamentals | Class #2-1 | Variables : Array & Maps

Поділитися
Вставка
  • Опубліковано 19 чер 2024
  • Unlock the power of Unreal Engine with this essential addendum to our variables training unreal engine blueprint tutorial! 🎮🚀 Dive deeper into Blueprints and learn how to leverage Array and Map container types for efficient game development. Perfect for beginners and experienced developers alike!
    In this video, we'll cover:
    ✅ Understanding Arrays - The versatile list of values and their indexes
    ✅ Working with Maps - Customizing addresses and values for ultimate flexibility
    ✅ Practical Examples - Real-world use cases for both Array and Map containers
    Whether you're new to Unreal Engine or looking to expand your knowledge, mastering arrays and maps in Blueprints will boost your game development skills! Don't miss out on this valuable addition to our variables training series.
    Got questions or feedback? We'd love to hear from developers of all experience levels. Drop a comment below, and let's grow together as a game development community! Remember to like, share, and subscribe for more Unreal Engine tutorials and game development tips. Happy developing! 🕹️🌟
    ✨💲 Tips are welcome! (We also have Patreon and supers):💲✨
    www.paypal.com/donate/?hosted...
    Join our Patreon to vote for upcoming topics, download tutorial content, as well as early access to tutorials and live dev streams.
    / askadev
    🔗 Join our discord server for questions and community:
    / discord
    Spreading the word is also a great way to support the channel.
    🙏Truly grateful for support in all forms.✨
    #ue5 #beginner #tutorial #unreal #UnrealEngine5 #course #free #3d #game #UnrealEngine #Blueprint #GameDevelopment
    0:00 - Intro: Container Types in Unreal Engine
    1:11 - Understanding "Buckets" in Variables
    2:54 - Creating a List of Fruits: Array Example
    4:57 - Visual Scripting & Indexing Arrays
    9:19 - Setting Values in Arrays
    11:45 - Key Aspects of Working with Arrays
    12:44 - Using Indexes to Set Array Elements
    17:47 - Address and Value: The Map Container Challenge
    20:45 - Redefining Variable Types & Setting Map Values

КОМЕНТАРІ • 85

  • @laxatory
    @laxatory 8 місяців тому +35

    Man you gotta keep this going for sure. You have a criminally low subscriber count for how good these tutorials are. Not many people actually take the time to dive deep into the foundational aspects of learning. Most tutorials just say; copy this, do this and that, and it just works. Not many people teach and explain the why behind things, which is most important. This format is invaluable, don't stop making these videos. I'm sure with everyone moving from Unity to UE5, this channel is going to become a cornerstone of the learning community.

    • @livinfreestyle6727
      @livinfreestyle6727  8 місяців тому +7

      Wow! What a great motivator and thanks for taking time to share that. Who in their right mind would ever stop making videos after that kind of boost! Thanks for dropping the note and if you have any ideas to make things better, let me know!

    • @laxatory
      @laxatory 8 місяців тому +2

      Oh for sure. I'm brand new to coding, scripting, and anything related to this. Literally 0 experience. I've been messing around on the engine for a couple weeks and the problem I was facing is that a lot of the tutorials didn't explain why they were doing things, or they were doing too many things all at once i.e. Textures, landscaping, animation, all in the same videos. Not the case here sir! For me, I have to be able to understand why something is used a certain way, otherwise I can't take those concepts and make it my own. I've got a lot more of your videos to watch, so if I think of anything, you can bet I will let ya know :)@@livinfreestyle6727

    • @erichorton1440
      @erichorton1440 6 місяців тому +1

      Pure facts. 👋👋👋👌

    • @alessandrasmota
      @alessandrasmota 4 місяці тому +1

      Ditto 👏👏👏👏

    • @ez6314
      @ez6314 3 місяці тому +1

      it's true, I was so confused with other videos until I stumbled on to yours. Other videos kept telling me to use this node and that node but didn't explain how nodes work with analogy. Other videos would just give me definition terms which didn't help.

  • @MrJohan2302
    @MrJohan2302 3 місяці тому +3

    Hi Kevin, being a dad of 50 odd years and just trying to teach myself something new, I must say your Tutorials is hitting the spot. I started in 1992 with a information technology degree but I never got the hang of it, and finally quit. I could help myself to read code and quickly comprehend what the basics are, but I must say this course has me super excited. To see code visually is making my life simple, I even tried Godot when they still had the VS Script, and the way you explain really is a fresh breeze between all the tutorials out there.

    • @livinfreestyle6727
      @livinfreestyle6727  3 місяці тому

      That's great to hear! The visual part is really fun, especially with some more core understanding on top of it. If you have ideas to help fill in gaps or future stuff, definitely let me know. Thanks for watching

  • @apapataco
    @apapataco 24 дні тому

    One thing that's not variable is the quality of these videos. They're always great. Thank you.

  • @yassirouchrif2931
    @yassirouchrif2931 Місяць тому +2

    I spent about 16 hours so far going through various tutorials and it wasn't until i found your channel that i had that "it clicked" moment. This is all finally starting to make sense. Your style of teaching is truly wonderful. thank you for your help.

  • @Caglarcomposes
    @Caglarcomposes Місяць тому +2

    I watched this once when I started this playlist, and watched once again when I got to the Loops and Arrays part. Repetition helps with the memory for sure. Thank you for these videos!

  • @knitejax659
    @knitejax659 2 місяці тому

    I'm new (less than a month experience) and so far these have been a great help in understanding the fundamentals.
    Thank you very much and I'm super stoked to begin making my game 😁

    • @livinfreestyle6727
      @livinfreestyle6727  2 місяці тому +1

      You're very welcome and looking forward to seeing your game

  • @anthonysimmonsacousticmusi1098
    @anthonysimmonsacousticmusi1098 5 місяців тому +2

    It would be great if you did a tutorial series on a video game with the deep dive explanations of what is going on. And why things are used. It would definitely take a long time but would be by far the most epic videos out there cuz nobody else does that.

    • @livinfreestyle6727
      @livinfreestyle6727  5 місяців тому +3

      That is the plan. First we need to finish off foundation stuff so that as we go we can say "if you are unfamiliar with Anim BP, checkout the Anim BP video" We're getting closer and will be asking the community what format will be best for that. Thanks for watching

  • @Fizziepop
    @Fizziepop Місяць тому

    nice! Thank you for this series.

    • @livinfreestyle6727
      @livinfreestyle6727  Місяць тому

      u r welcome. If you get through it all and find gaps, let me know and we can add more to the fundamentals

  • @erichorton1440
    @erichorton1440 6 місяців тому

    Array and maps were a tough one. You're a grand master at explaining things in laymen's terms. For real for real. And for me just starting to learn Unreal Engine, these classes are boosting my knowledge fast. Thanks!!!

  • @pbm000
    @pbm000 Місяць тому

    Thank you very much! I am very grateful for your videos! You are a very good teacher! You teach a deep understanding of the processes and also show ways of how not to solve something, for example. I had hardly any experience before and can now imagine and put simple things together in my head. At the moment I can only support with likes but if my work bears fruit, I will send you your share via Patreon or another way. Thank you and please keep up the good work!

    • @livinfreestyle6727
      @livinfreestyle6727  Місяць тому +1

      I'm glad the videos are helpful. I appreciate support in all forms especially comments and spreading the word. So thank you for the watch and the feedback

  • @bestpetzone
    @bestpetzone 17 днів тому

    Amazing

  • @pgpleagueraces
    @pgpleagueraces 23 дні тому

    I wanted to figure out how to update a specific part of a map like we did with Arrays and I found that if you called the add function and put in the same value as an existing one and changed the value, it would work like an update and override the existing value. My understanding of maps is that the reference has to be unique, but the reference can store any value, so if you add to an existing reference, it works like an update as it overrides the reference with the new value. Maps are essentially key value pairs where the key has to be unique, but it can reference anything.
    A better way to build the map would probably to be have a unique name for a gun in the left string, then give it's gun class in the right string to organize it. that way the pistol can be attached to many unique gun names. If we wanted a many to many relationship so we can have multiple gun names and multiple gun types we could probably due to an array of arrays, but since that doesn't seem possible through the UI, we could do a work around where we make an object that has an array of strings in it, and then do an array of that object.

    • @livinfreestyle6727
      @livinfreestyle6727  23 дні тому

      There's a lot of combos you can do with maps. but you pretty much nailed it, it's basically like a key value pairs. But you can even do a key then a struct for the pair etc etc. One thing to note, there use to be (and I can't remember if it's still a thing) a case where maps didn't replicate. Sounds like you have XP in all this stuff so worth a check/mention. Thanks for dropping the comment

  • @DarkSession6208
    @DarkSession6208 Місяць тому +3

    Absolutely fantastic video! Even months into BP i still learned something.

    • @livinfreestyle6727
      @livinfreestyle6727  Місяць тому

      so that pretty cool to hear for sure. Thanks for the watch and dropping the feedback

  • @user-kb6mk8jp2i
    @user-kb6mk8jp2i 3 місяці тому +1

    awesome videos! best unreal series on youtube on par with the offical documentation! please keep iu up!!

    • @livinfreestyle6727
      @livinfreestyle6727  3 місяці тому

      Thank you, the plan is to keep going for sure. We have a lot to get through

  • @Jaysinxe
    @Jaysinxe 6 місяців тому

    great video!

  • @anthonysimmonsacousticmusi1098
    @anthonysimmonsacousticmusi1098 6 місяців тому +2

    Love your videos man. I really like that you not only explain what things are but what to use them for and how that is priceless

    • @livinfreestyle6727
      @livinfreestyle6727  6 місяців тому +1

      Hahahhahah you are powering through these, I better get cranking and make more. Thanks for watching

    • @anthonysimmonsacousticmusi1098
      @anthonysimmonsacousticmusi1098 6 місяців тому

      I would really love if you would add that all the possible uses of a thing. Like world rotation I really don't understand what that is does that control the camera the world or the character. And where else would I use that or need that but I see it used all the time

    • @livinfreestyle6727
      @livinfreestyle6727  6 місяців тому

      well, that we can explain here. An object in your scene is OFTEN parented to something. So for example the roof of your house might be parented to your "house" When you rotate the roof, you are technically rotating it RELATIVE to its parent (in this case the house). That is the "local" rotations. The rotations relative to whatever it's parent is in the objects "local" space. The "World" rotation is the rotation of an object relative to the "WORLD" so if you were to unparent that roof from your house and it was just free in the world what would the rotations be. You see it everywhere because you can choose to rotate objects relative to their current parent (localRotation) or the world. IF an object is parented to the world. The world and local rotations are the same. Hope that helps

    • @anthonysimmonsacousticmusi1098
      @anthonysimmonsacousticmusi1098 6 місяців тому +1

      That makes sense thank you

  • @_EliteKnight_
    @_EliteKnight_ 24 дні тому

    Bro you are amazing, thank you very much!

  • @ograpes3458
    @ograpes3458 4 місяці тому

    thx a lot this is gold !

  • @legotimebombshorts4231
    @legotimebombshorts4231 3 місяці тому

    Arrays for some reason have always been intimidating. This definitely has made me understand better. Thank you!

  • @Shivaio
    @Shivaio 7 місяців тому +1

    Awesome video! Keep it up man!

    • @livinfreestyle6727
      @livinfreestyle6727  7 місяців тому +1

      Glad you liked it. Thanks for watching and the feedback. It motivates me to keep going.

  • @jonaspietsch161
    @jonaspietsch161 3 місяці тому +1

    Great series of tutorials. I've been using visual scripting in Unity for a few years now, but looking to dip into Unreal. This is very helpful to get started and learn about the differences of both solutions.

    • @livinfreestyle6727
      @livinfreestyle6727  3 місяці тому

      Glad you find it helpful. As you progress if you find there are other topics that would be helpful, let me know. Thanks for watching!

  • @danilomontero7935
    @danilomontero7935 6 місяців тому

    tnx a lot my lord

  • @jasonstarrising
    @jasonstarrising 3 місяці тому

    You're the goat

  • @atomixfang
    @atomixfang 8 місяців тому

    Thank you for these series of videos, recently i decided to move from unity and this has been so helpful!

    • @livinfreestyle6727
      @livinfreestyle6727  8 місяців тому

      That's awesome to hear the cross application value. Also helps motivate me to get the next video up for you all. Thanks for watching and the feedback!

    • @atomixfang
      @atomixfang 8 місяців тому +1

      @@livinfreestyle6727 It has been extremely useful, havent finished the videos after this one, but it would be interesting if you talked more about how to handle for loops, switches in the future.

  • @FredMorgan-gb5el
    @FredMorgan-gb5el 2 дні тому

    My laptop broke before I watched this vid and I follow along and I got a upgrade to a 4070 it super pc so I can do way more than before

  • @WestinsWorldStudio
    @WestinsWorldStudio Рік тому +1

    Good video! I assume if you get to name your main character at the beginning of a game, then a portion of that code would include a string to string map calls throughout the game to replace the default characters name with the custom made name?

    • @livinfreestyle6727
      @livinfreestyle6727  Рік тому

      I'm not sure it has to be quite that complicated. Generally you would just grab that info from your persistance later (the save game state, database, etc), and set it on the character once at startup and all the UI grabs it where it needs it for example

  • @sleepycritical6950
    @sleepycritical6950 Місяць тому

    Love the series so far. I recently had an idea on a game but with no actual experience or knowledge and your lessons are very easy to follow through.
    As a side note, I found the previous lesson on making the house using only VS extremely tedious but in the lessons for arrays you needed it to make the house a variable. Is it possible to simply model it, and set the model as a variable, or do I actually have to make it using VS to do all that transforms and such like you did with the house variable.

    • @livinfreestyle6727
      @livinfreestyle6727  Місяць тому

      You absolutely would just model the house. The house is a place holder. It may not even be a model, it could be a separate blueprint or actor in scene. The house serves as a common ground for understanding, and you do need the pieces in order to set all the transforms, but you could use blueprints or anything else. If it all just "clickks" you can skip around too.

  • @user-vp3vg4ii2h
    @user-vp3vg4ii2h 9 місяців тому

    will there be more episodes from this second season? 2-2, im subscribed and liked, this was dope!

    • @livinfreestyle6727
      @livinfreestyle6727  9 місяців тому +1

      Thank you for the thoughts! We will add a 2-2 for additional clarity on variables if people are looking for more info/help, but the series itself does go on:
      ua-cam.com/video/Wc9pdjJysi4/v-deo.html
      ua-cam.com/video/1UzBq36_54c/v-deo.html
      ua-cam.com/video/YvG5XPw_3tw/v-deo.html

  • @surajprakash3181
    @surajprakash3181 7 місяців тому

    I am glad I am continuing with your tutorial series. As a newbie it is still so hard for me to grasp all these concepts in one go, I am still very grateful to you for providing this valuable info at zero cost.
    one question; is it okay to use a vector variable as a vector map as in a - vector-vector map, like u used a string-string-map in the video? if yes, What are the use cases of vector-vector maps?

    • @livinfreestyle6727
      @livinfreestyle6727  7 місяців тому +1

      A vector-vector map hurts my brain a little, but here goes.....Let's say you wanted to store the names of a bunch of items you spawned all around the map. You could...and I'm not saying you should...but you could.....use the vector position as the key...and then the item as the value. I think there are more effecient ways to do this but you could use position as a key for example. Im sure there is something in particle systems too, but again...hurts my brain a little. Thanks for watching!

  • @ThatsJoshTyler
    @ThatsJoshTyler 3 місяці тому

    I have been following this playlist as I have tried time and time again to learn blueprints and how to make this do what, etc.... Its almost as if you cover all the important questions.. What, When, Why, and How.
    If you were a beginner with an understanding of everything up to the end of this video, what are some other test projects I can do on my own that will utilize what you have taught, without being to difficult to complete???

    • @livinfreestyle6727
      @livinfreestyle6727  3 місяці тому

      I think it sort of depends on what's the goal. I personally find it's easier to learn in context and I would suggest something that lines up with your end game. Without knowing what that is I think at least getting through class 5 plus the inheritance video would be good as a baseline

    • @livinfreestyle6727
      @livinfreestyle6727  3 місяці тому

      Thanks for watching and dropping feedback!

  • @graham8624
    @graham8624 10 днів тому

    👍

  • @mohamedel-gazzar5818
    @mohamedel-gazzar5818 Місяць тому

    So lets say I wan to make a bunch of weapons. Should I make each weapons as a variable with that variable being an array of stats as the index and floats for keys? Also how do I make a "Bucket" of variables then? Or is there a better way to do this?

    • @livinfreestyle6727
      @livinfreestyle6727  Місяць тому +1

      An array can be an array of any type. So you can have an array of floats, ints, but you can also have an array of weapons or even structs. As far as how you make a bunch of weapons, that depends on how they are used in your game. For example each weapon could be a blueprint. Then you can have an array that keeps track of them. Just depends on the use case.

  • @ProcessBlueProductions
    @ProcessBlueProductions 22 дні тому

    Are there any specific naming conventions we should know about? I noticed the single variables are capitalized and array/maps are lower case. Is this common practice, or just specific to your style?

    • @livinfreestyle6727
      @livinfreestyle6727  21 день тому +1

      Epic has a doc for assets: dev.epicgames.com/documentation/en-us/unreal-engine/recommended-asset-naming-conventions-in-unreal-engine-projects?application_version=5.4
      For blueprints usually the team I am on agrees on what the conventions will be
      For me I like to prefix all local variables in functions with Loc....and I'll have to think on the rest.

    • @ProcessBlueProductions
      @ProcessBlueProductions 21 день тому

      @@livinfreestyle6727 Ooh thank you, I'll start there!

  • @danilobarbosa669
    @danilobarbosa669 Місяць тому

    Excellent explanation, is it possible to exchange cameras with an array?

    • @livinfreestyle6727
      @livinfreestyle6727  Місяць тому

      Im not sure what you mean by "exchange cameras"

    • @danilobarbosa669
      @danilobarbosa669 Місяць тому

      @@livinfreestyle6727 My question was incomplete, sorry, in this case I wanted to know if it was possible to store the reference of 2 or 3 cameras and exchange these cameras for the array, with any collision or entry.

    • @livinfreestyle6727
      @livinfreestyle6727  Місяць тому

      @@danilobarbosa669 I think the answer is yes. If you have three of anything, you can store a reference of them in an array for example and then reference that array to access the one you want. Where you do that etc depends on your setup, but an array can store any type basically

  • @drakouzdrowiciel9237
    @drakouzdrowiciel9237 2 місяці тому

    😉

  • @invert6actual585
    @invert6actual585 Місяць тому

    Anyone have a good video for Arrays made in runtime?

    • @livinfreestyle6727
      @livinfreestyle6727  Місяць тому +1

      so we take a bunch of practical examples in the later lessons. Basically all the 5-1, 2 ,3. Is that the kind of thing you are looking for?
      ua-cam.com/video/YvG5XPw_3tw/v-deo.html

    • @invert6actual585
      @invert6actual585 12 днів тому

      @@livinfreestyle6727 These help yes thank you! I ended up nixing my spline cable that makes a path from a box I push for time constraints of my project, but I will keep digging so I know inside and out someday how to implement them effectively.