x

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"

persistent key binding

I'm working on my Options menu and want the changes the player makes to be persistent. For options like video settings there is a function UGameUserSettings::SaveSettings() which saves user settings to persistent storage.

But what about other settings like rebinding game controls? Are these usually saved in an .INI file?

I see that ShooterGame defines its own UShooterGameUserSettings class which has some additional things and then changes the DefaultEngine.ini file:

 GameUserSettingsClassName=/Script/ShooterGame.ShooterGameUserSettings

Is this where I would store the user's key bindings? Would I make a new UCLASS(Config=Game) with UPROPERTY(Config) and then save the changes to an .INI file?

Or can I do something with the PlayerController's UPlayerInput which looks like it stores the Action and Axis mappings? Any hints on how this is typically used to persist changes made in the Options menu?

Product Version: UE 4.19
Tags:
more ▼

asked May 07 '18 at 08:22 PM in C++ Programming

avatar image

jr557
48 10 14 21

(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