How to Create a Game Instance in Unreal Engine 5 - Carry Data Between Levels

Поделиться
HTML-код
  • Опубликовано: 9 июн 2024
  • Hello guys, in this quick and simple tutorial we are going to see how we can make a game instance in Unreal Engine 5.
    ↪️Project Files: bit.ly/GorkaGames_Patreon
    🏆My New Unreal Course: bit.ly/UE5_StealthCourse_Game...
    🔥Discord: bit.ly/GorkaGamesRUclipsDisco...
    Patreon: bit.ly/GorkaGames_Patreon
    Check out my Steam Game! bit.ly/3rVlXU1
    Follow me on Twitter: / gorkagames
    Follow me on Instagram: bit.ly/InstagramGorkaGames
    Subscribe to the channel: / @gorkagames
    unreal engine 5,ue5 game instance,tutorial,quixel,megascans,unreal engine persist data between levels,carry variables between levels in unreal engine 5,ue5 game instance variables,game instance in multiple levels tutorial,game instance class,unreal engine 5 how to make a variable between levels,unreal engine 5 game instance class between levels,unreal engine 5 game instance between levels

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

  • @shahmaarbaba
    @shahmaarbaba 26 дней назад +22

    make a loading screen showing the process bar with percentage of level loading

  • @moeburhanimeez7354
    @moeburhanimeez7354 26 дней назад +9

    Saving data and sending it from one level to the other is much easier than I thought it was!

    • @GorkaGames
      @GorkaGames  26 дней назад +4

      with a game instance it's so easy!!

    • @DarkTechGames1
      @DarkTechGames1 26 дней назад +1

      To simplify it... Your Level Instance is the ONLY THING that needs to communicate with your Save Game. Everything else communicates with the Level Instance.

  • @DarkTechGames1
    @DarkTechGames1 26 дней назад +7

    You're on top of it quickly... Lol

    • @GorkaGames
      @GorkaGames  26 дней назад +3

      haha I work with speed!!

  • @eligijuspranskunas3509
    @eligijuspranskunas3509 26 дней назад +2

    nice, please make more tutorials about those instances, player controller, etc.

  • @Muneebdevelopment361
    @Muneebdevelopment361 26 дней назад +2

    hey , gorka, i switched to unity but i still will be your supporter and subscriber and always a unreal user!

  • @nayler2010
    @nayler2010 25 дней назад

    Always great easy to follow content your doing great work for helping solo developers! One of the best ue5 RUclipsrs out here,

  • @bisart1
    @bisart1 25 дней назад +1

    Please make a video about save game load game and reset!

  • @enderfire3379
    @enderfire3379 26 дней назад +3

    yay, new tutorial

  • @ThePavilionWeb
    @ThePavilionWeb 25 дней назад

    Just found you Today and so glad I did, amazing content clearly explained with a decent real world example, SUBSCRIBED ✅

  • @FredrikBlixt-mn9re
    @FredrikBlixt-mn9re 19 дней назад

    Amazing

  • @lordchimp
    @lordchimp 26 дней назад +2

    çok aktif bir kanal

  • @pierrecadeot
    @pierrecadeot 26 дней назад +1

    oh yeah purrrfect :)

  • @reginioremarkb.4864
    @reginioremarkb.4864 25 дней назад

    Nice tutorials bro, can you also make a dialogue where a player can interact to npc (like having a conversation) where there is option to select to answer to the npc question.

  • @AbbastiktokRt24
    @AbbastiktokRt24 26 дней назад +1

    Good good

  • @halall_man_o
    @halall_man_o 26 дней назад +3

    I needed this for my game, thx Gorka! I have a question can you tell me how to store multiple stuff like what swords I have, what health/Ammo and Level I have etc?

    • @DarkTechGames1
      @DarkTechGames1 26 дней назад

      Just create variables for them in the level instance matching their variable types and set them in the level instance when it's where you want it. Then to load them, just SET where you want it FROM the Level Instance.

    • @DarkTechGames1
      @DarkTechGames1 26 дней назад

      Key point in this is to organize your Level Instance to make it easier to FIND data that will be later loaded or saved.

  • @ChkolMix
    @ChkolMix 26 дней назад +2

    who we makeup short animation in own game to vid and put a vid on first title's of game or put some animation clip into game look like when you open door or walk on the some place when we pointed showing animation clip when we puted before ? idk how i telling you but i know u know what i mean to say .... ty man i love u so much for help us

  • @zachwise476
    @zachwise476 24 дня назад

    I'm almost done with the game I've been working on for the passed year! You've been a big help. How do I find assets in my project I didn't use and are safe to delete?

  • @daviddedovec6435
    @daviddedovec6435 26 дней назад +1

    Do an uneqipment system please

  • @J4RUBY
    @J4RUBY 24 дня назад

    Can you show us how to sim projectiles in a third person shooter. You’ve shown us line traces, but I’d love to create a projectile based shooter

  • @Cazaq
    @Cazaq 26 дней назад +1

    Great tutorial. One suggestion for future work would be to use "Open Level (by Object Reference)" in place of Open Level (by Name), as it takes an object reference, loads async and is generally a better way of doing things.

    • @PolyFun365
      @PolyFun365 3 дня назад

      I followed the video in the tutorial. It works.
      Then I read your comment.
      I did some research and found out that UE doesnt play well with For-Loops of Arrays.
      What worked for me was,
      In BP_SelectionChar change the variable array "characters" to "Soft Object Reference"
      (let it recompute)
      Doing this means you will have to create a new "get" node later in the graph,
      and UE will auto-resolve the outputs of the new "Get" node when connected they are
      connected to "Set" and "Set Skeletal Mesh Asset" nodes.
      Then in GM_Selection, right after EventBeginPlay, I connected the execution pin to an AsyncLoadAsset node.
      Then created another variable called "characters" which is also a soft object reference to type of Array
      (same as in BP_Selection char)
      Then I brought in the new variable and connected it to a "Get" node and hooked the "Get" to the Async Load.
      Then set the index to zero
      Repeated this process again twice, each time setting the index to a known good in-game char (0,1,and2 currently)
      It works but doing it this way means that when you create the array here, called characters..
      its array elements have to exactly match the name and order listed in BP_Selection char.
      ---- ----
      The memory map is the same upon game start as it is before game start.
      The difference is that the characters shaders compile after game has started instead of when the UE editor loads.
      Also, I can introduce another character into the game but not have it loaded at game start but maybe be picked up in game and load it at that time.
      It's not perfect but it works.
      If there's a better way, please let me know how;
      (I want to be able to have different abilities on three example chars and be able to click a GM-only-Swap-In-Place button and switch out characters entirely in-place, in-game, and have that be the "structure" I use to local multiplayer before anything else.
      (Its different on steam but for local multiplayer, imagine if the reward for being the host is that you get to change to any other char... after all the host of local-multi is doing most of the work)

  • @gracecpy
    @gracecpy 25 дней назад

    Hello! Can you make a tutorial on cooking system in Unreal Engine?

  • @MorningStar1621
    @MorningStar1621 26 дней назад

    Works great except you need to hold down mouse to play when you load into level, how do you fix it?

  • @HG-tu2xn
    @HG-tu2xn 25 дней назад

    does game instance save player's data after closing and opening the game?

  • @AlexZyablov
    @AlexZyablov 25 дней назад

    Hello Gorka, can you explain please, why cyberpunk 2077 is an open world without loadings between levels but when you use a teleport you have to wait a few seconds of loading? Probably some of optimization? How can I implement it in my own game?

  • @101_studios
    @101_studios 25 дней назад

    please create
    could you please make a video of creating a server and entering it but as an fps game? please

  • @sachchitlauvyadaskakoty
    @sachchitlauvyadaskakoty 22 дня назад

    Brooo pleaseeeeeee make a video series on how to make a game like resident evil pleaseeeeeee pleaseeeee

  • @KyrmetronixStudios
    @KyrmetronixStudios 24 дня назад

    how can I transfer ownership of the session to a different player such that the host can leave without disrupting the other players?

  • @samos0001
    @samos0001 24 дня назад

    Hi
    I really like your videos. Unfortunately I can't find answer on my problem, so maybe you can give me some advice:)
    I created simple Physic-Base flying ship (it's cube for now). I want be able to flying this ship and also move BP_ThirdPersonCharacter on that ship. Unfortunately, BP_ThirdPersonCharacter move is Non_physic and because of that I got many issues. Is it possible to combine physic with non-physic movement? If not, what is easier to implement? Physic movement for character or non physic movement/flying for ship? I prefer physic solutions, but also I dont want to create physic movement for charcter (I think it will be complicated, especially since in the future I will want to implement an NPC that will walk around the ship). What do you advise?

  • @jacktoobsee
    @jacktoobsee 23 дня назад +1

    Please try not to ‘Cast’ too much, it can impact performance

  • @HeyShotgun
    @HeyShotgun 26 дней назад +1

    Hmm okay so this isn’t really known . But can you possibly try a meta human setup tutorial because I look for it and everyone shows the meta human site and then skip the actual implementation

    • @DarkTechGames1
      @DarkTechGames1 26 дней назад +1

      I actually HAVE a 3D metahuman character selection screen and it works the same. But instead of saving a Mesh, you are saving a particular Blueprint to load.

    • @HeyShotgun
      @HeyShotgun 26 дней назад

      @@pierrecadeot 🗿NO

  • @jotafreshh4126
    @jotafreshh4126 25 дней назад

    Hello Gorka Games, I am from Argentina, sorry if I write wrong.
    I come from the video in which you teach how to create an equipment system. My question is how could I make it so that my character, when starting the game, already starts with the weapons and the respective damage that each one inflicts. Like in the game shadow of the colossus

    • @jotafreshh4126
      @jotafreshh4126 25 дней назад

      Gracias por tus videos!! aunque estan en ingles aprendi mucho!

  • @agentshadow6618
    @agentshadow6618 25 дней назад

    Iam asking for the 10th time please make cloth system like steller blade you find outfits and you change in main menu, using also metahuman.... Please❤❤