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"

[4.8] Why does DefaultInput.ini have +/- in front of its entries?

Why does DefaultInput.ini have +/- in front of its entries?

And why are there multiples of the exact same entry, where the only difference is a + or -?



I am setting up code to manually write in these values. I am assuming that I need to use GConfig->SetArray and pass in an array of strings, wherein the strings match the format. But I don't know why there are multiple entries of the same Value, or what the +/- do.

The Special Characters section in the Docs [link text]here[1] seems to say the +/- adds or removes a line if that property doesn't exist or is an exact match(respectively). But Im not following what that actually means.

If I am already writing a line into the .ini what exactly is the + adding?

[1]: https://docs.unrealengine.com/latest/INT/Programming/Basics/ConfigurationFiles/

Product Version: Not Selected
more ▼

asked Aug 17 '16 at 11:21 PM in C++ Programming

avatar image

408 47 52 73

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Yes, its an old topic, but this is the answer (I had the same question today):


 Special Characters
     + - Adds a line if that property does not exist yet (from a previous configuration file or earlier in the same configuration file).
     - - Removes a line (but it has to be an exact match).
     . - Adds a new property.
     ! - Removes a property; but you do not have to have an exact match, just the name of the property.
more ▼

answered Jul 13 '18 at 08:08 AM

avatar image


(comments are locked)
10|2000 characters needed characters left
Your answer
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