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 @@ -184,6 +184,28 @@ in many sections of the project settings.
184184
185185.. image :: img/feature_tags4.webp
186186
187+ Taking feature tags into account when reading project settings
188+ --------------------------------------------------------------
189+
190+ By default, feature tags are **not ** taken into account when reading project settings
191+ using the typical approaches (:ref: `ProjectSettings.get_setting<class_ProjectSettings_method_get_setting> `
192+ or :ref: `ProjectSettings.get <class_Object_private_method__get >`).
193+ Instead, you must use :ref: `ProjectSettings.get_setting_with_override <class_ProjectSettings_method_get_setting >`.
194+
195+ For example, with the following project settings:
196+
197+ ::
198+
199+ [section]
200+
201+ subsection/example = "Release"
202+ subsection/example.debug = "Debug"
203+
204+ Using ``ProjectSettings.get_setting("section/subsection/example") `` will return
205+ ``"Release" `` regardless of whether a debug build is currently running. On the
206+ other hand, ``ProjectSettings.get_setting_with_override("section/subsection/example") ``
207+ will obey feature tags and will return ``"Debug" `` if using a debug build.
208+
187209Customizing the build
188210---------------------
189211
You can’t perform that action at this time.
0 commit comments