Explorar el Código

Add navigation annotations to gdscript export docs

Under 'exporting bit flags', add 2D and 3D navigation annotations to the bit flag annotation examples.
SnailRhymer hace 3 años
padre
commit
5d43929a09
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      tutorials/scripting/gdscript/gdscript_exports.rst

+ 3 - 1
tutorials/scripting/gdscript/gdscript_exports.rst

@@ -237,12 +237,14 @@ has value 1, ``Water`` has value 2, ``Earth`` has value 4 and ``Wind``
 corresponds to value 8. Usually, constants should be defined accordingly (e.g.
 corresponds to value 8. Usually, constants should be defined accordingly (e.g.
 ``const ELEMENT_WIND = 8`` and so on).
 ``const ELEMENT_WIND = 8`` and so on).
 
 
-Export annotations are also provided for the physics and render layers defined in the project settings::
+Export annotations are also provided for the physics, render, and navigation layers defined in the project settings::
 
 
     @export_flags_2d_physics var layers_2d_physics
     @export_flags_2d_physics var layers_2d_physics
     @export_flags_2d_render var layers_2d_render
     @export_flags_2d_render var layers_2d_render
+    @export_flags_2d_navigation var layers_2d_navigation
     @export_flags_3d_physics var layers_3d_physics
     @export_flags_3d_physics var layers_3d_physics
     @export_flags_3d_render var layers_3d_render
     @export_flags_3d_render var layers_3d_render
+    @export_flags_3d_navigation var layers_3d_navigation
 
 
 Using bit flags requires some understanding of bitwise operations.
 Using bit flags requires some understanding of bitwise operations.
 If in doubt, use boolean variables instead.
 If in doubt, use boolean variables instead.