whats the deferent between gamestate and game instance
whats the deferent between gamestate and gameinstance what we should use for multiplayer UI (UMG) cuz i see some use the gamestate and some use gameinstance
asked Mar 10 '15 at 08:44 PM in Blueprint Scripting
GameState is replicated extension of GameMode, since GameMode it self is not replicated and exists only on servers memory for security reasons. So GameState let clients access some game data which you would normally place in GameMode, primerly scores and match time, stuff that you usually see on scoreboard. This is only info that client will have and GameMode should have info which only server should know. You can ignore GameState if you creating single player only game.
GameInstance is a class that which state persists switching of levels, game mode switches etc. where classes like GameMode or PlayerController are being reset and any data stored in them is deleted and put to defaults again. Any data that you want to keep beyond levels and matches, for example "what player did in specific moment so you can have consequence on other level" should be placed here. This class is mainly helpful for single player games... but it can find uses in multi player too ;] I not sure if that class is replicated
For UI of multiplayer game you should use GameState and PlayerState ofcorse
" I not sure if that class is replicated"
does it exists on server side and client side both?
answered Aug 10 '16 at 05:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here