File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,28 @@ in many sections of the project settings.
188
188
189
189
.. image :: img/feature_tags4.webp
190
190
191
+ Taking feature tags into account when reading project settings
192
+ --------------------------------------------------------------
193
+
194
+ By default, feature tags are **not ** taken into account when reading project settings
195
+ using the typical approaches (:ref: `ProjectSettings.get_setting<class_ProjectSettings_method_get_setting> `
196
+ or :ref: `ProjectSettings.get <class_Object_private_method__get >`).
197
+ Instead, you must use :ref: `ProjectSettings.get_setting_with_override <class_ProjectSettings_method_get_setting >`.
198
+
199
+ For example, with the following project settings:
200
+
201
+ ::
202
+
203
+ [section]
204
+
205
+ subsection/example = "Release"
206
+ subsection/example.debug = "Debug"
207
+
208
+ Using ``ProjectSettings.get_setting("section/subsection/example") `` will return
209
+ ``"Release" `` regardless of whether a debug build is currently running. On the
210
+ other hand, ``ProjectSettings.get_setting_with_override("section/subsection/example") ``
211
+ will obey feature tags and will return ``"Debug" `` if using a debug build.
212
+
191
213
Customizing the build
192
214
---------------------
193
215
You can’t perform that action at this time.
0 commit comments