Clarify notice about feature tags being immutable

- Update the recommendation to check for the project running on
  a mobile web browser.

(cherry picked from commit 601eb7799b)
This commit is contained in:
Hugo Locurcio
2024-07-24 21:09:06 +02:00
committed by Max Hilbrunner
parent 52b408e4d3
commit 6447267255
+7 -8
View File
@@ -125,15 +125,14 @@ Here is a list of most feature tags in Godot. Keep in mind they are **case-sensi
.. warning:: .. warning::
With the exception of texture compression and ``movie`` feature tags, With the exception of texture compression, ``web_<platform>`` and
default feature tags are **immutable**. This means that they will *not* ``movie`` feature tags, default feature tags are **immutable**.
change depending on run-time conditions. For example, This means that they will *not* change depending on run-time conditions.
``OS.has_feature("mobile")`` will return ``false`` when running a project For example, ``OS.has_feature("mobile")`` will return ``false``
exported to HTML5 on a mobile device. when running a project exported to Web on a mobile device.
To check whether a project exported to HTML5 is running on a mobile device, To check whether a project exported to Web is running on a mobile device,
:ref:`call JavaScript code <doc_web_javascript_bridge>` that reads the browser's use ``OS.has_feature("web_android") or OS.web_has_feature("web_ios")``.
user agent.
Custom features Custom features
--------------- ---------------