Is it possible to edit GameMode variables in Editor?

Hello,

I was wondering if it’s possible to edit GameMode variables directly in editor? I am using a GameMode BP to set some custom variables for my world and currently I am setting all values in defaults section of BP. It would be convenient if I could edit these variables directly in editor some way.

Hey deusduke,

This is not currently possible. You can access main Game Mode class selections via World Settings in editor, but any custom variables won’t appear there. I am entering a feature request for this capability in our system for our developers to consider. Thanks for input!

Best,

Awesome, good to hear.

Thanks!

Deus

Could you explain a little more about your usage? You can already edit selected Game Mode properties in WorldSettings GameMode override and Project Settings → Modes and Maps section.

Hey JamesG,
I was about changing variables for custom GameModes exposed via BP. Currently only way to do it is to open BP and change default values of variables. It doesn’t seem like it’s possible to edit custom variables directly in editor yet as was saying. Of course, I could add an actor to scene that exposes variables, and then set GM variables from that actor on begin play event, but that’s an extra step :slight_smile: .

I’d be interested if any work has been done on this front.

Hi Daniel,

It sounds like this feature request was denied, as any custom variables in your GameMode can be accessed in GameMode BP already.

(TTP #335969)

fair enough

I’m curious… Can’t you just Cast to your Game Mode BP using Get Game Mode as Object and then call your variables from there? I know you can do this from player pawn so you’d think it would work from Level Blueprint as well. Though to be honest, its easier to just create a parent game mode and then create a child of that parent for each level to tweak settings as needed.

Hey ,

I realize I’m well out of date with this question, and no disrespect meant, but doesn’t that seem like kind of a bogus reason? You can access custom variables for any BP within BP itself, but it’s great to have quick access to them in Details panel. I’d love to be able to set up some variables in my game’s custom game mode and have designers on team change them around in World Settings panel, where you already pick out GameMode Override. Is there any chance team would revisit another request about this, and was there any explanation for decision beyond what you shared here (just to satisfy my own curiosity)?

Thanks!

Agreed.

Already denied so this is moot, but it would be nice to be able to quickly access some variables in World Settings. As an example - I want to test my game with various custom loadouts, and I want my team to be able to try different options as well. If it’s just one BP it’s fine, but when you have multiple options you want to start game with, World Settings seems like an ideal place - particularly as World Settings is already used for exactly that for certain settings. To be able to customize that seems to be a simple request.

Not to be “that guy”, but why not place gameplay-related functions / variables in GameState? (especially since it’s replicated and available to both client and server)

You have access to a game state in any blueprint and it will always exist, unlike Game Mode which only exists on server only.

You are also able to freely modify all variables on–fly while playing in editor.

You can create a Blueprint that extends your C++ GameMode class. When you open GameModeBlueprint you can see your properties in details panel when you click class defaults. For me I added one to control percentages and I named it “CPU Player Controls”. I am using 4.15 and it works like a charm. I don’t know if it works in older versions.

This convenience is significant enough to warrant effort required. Epic, please reconsider. longer you go without adding it in, more those short waits pile up into world-wide man hours of wasted time opening blueprint.

2018 and I still wait for this feature.

EpicGames, please reconsider your decision.

1 Like

One option is to make a subclass of world settings and put any options you need in there. You can then set your world settings class in project settings.

Haven’t tested it myself but I think custom properties appear in world settings tab.