From 52f1bc2c73dfa5612217e73133373bf26567b44e Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Sun, 15 May 2022 19:27:16 +0200 Subject: [PATCH] Merge pull request #5816 from Calinou/feature-tags-immutable Document most default feature tags being immutable (cherry picked from commit ecdd7d311a9be9dc977abc3bf1615da877678781) --- tutorials/export/feature_tags.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tutorials/export/feature_tags.rst b/tutorials/export/feature_tags.rst index f57f68867..fd3bbfd30 100644 --- a/tutorials/export/feature_tags.rst +++ b/tutorials/export/feature_tags.rst @@ -86,6 +86,17 @@ Here is a list of most feature tags in Godot. Keep in mind they are **case-sensi | **pvrtc** | Textures using PVRTC compression are supported | +-----------------+--------------------------------------------------------+ +.. warning:: + + With the exception of texture compression feature tags, default feature tags + are **immutable**. This means that they will *not* change depending on + run-time conditions. For example, ``OS.has_feature("mobile")`` will return + ``false`` when running a project exported to HTML5 on a mobile device. + + To check whether a project exported to HTML5 is running on a mobile device, + :ref:`call JavaScript code ` that reads the browser's + user agent. + Custom features ---------------