Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Structure]Save player specific input and use it later


I've already read some guides and looked some video tutorials, but it seems that I haven't got it fully yet.

My current solution is based on the video guide from Vigeo James "UE4 Save/Load" Tutorial with structures. https://www.youtube.com/watch?v=sNQwtBM94-0

My Scenario: There is an widget blueprint existing, which should catch some specific player information and handover them for further interaction later. (Showing content later on other widget)

  • Player name

  • company name

  • country

  • logo

As I've already learned, I have to store them, so I decided to use a Structure and try to get the information in a Savegame file.

  • Blueprint: PlayerSelection -> Widget shows 2x editable text boxes and 2 defined (atm static) 2d structures
    • Variables: PlayerVarStruct, SavedGame, LoadGame

  • SaveGame: PlayerSaveGame -> holds structure variable "SaveStruct"

  • Structure1: PlayerInfo -> 2x Editable text variables (PlayerName, Company Name) + 2 Texture 2D (Country, CompanyLogo)

  • Structure2: SavedVariables (Duplicate of Structure1)

I built the solution from video tutorial step by step and adapted it into this solution: alt text

As far as I understood and can see on the file directory, an savegame is created. Can anyone check please and give me a feedback:

  • Working solution or not

  • Confirm, this is the right way to handle this

I have also adapted this logic, but I'm not sure how to implement consistent. alt text

On my current understanding:

  • Before Player Selection, there is a loading game button, so I have to implement True Branch there on click.

As alternatives, I've learned I have to use

  • Gamestate to store and replicate data (Best Practice for MP?!)

  • GameInstance for solo or any other persistent "parent"

  • WidgetSwitcher as indexer to share data between Widgets (do yo recommend this?)

I've now tried so many times for couples of hours, but every thread or video im looking is confusing me more. I want to get this working and in general store data, so I can use them over blueprints, this is currently my main showstopper, I can't extend my game mechanics without this basic. I'll highly appreciate every advice, thanks for your time!

Best regards

Product Version: UE 4.20
save-load.png (290.6 kB)
save-load2.png (151.0 kB)
more ▼

asked Nov 08 '18 at 07:03 AM in Blueprint Scripting

avatar image

3 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question