You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the inspector for a NavigationPolygon in a NavigationRegion2d node the hints for 3D physics layers are displayed in the Parsed Collision Mask attribute.
As the 2D physics layers are used to scan for colliders anyways, It would be expected to show hints for the 2D physics layers instead of 3D physics layers.
The issue seems to be with this line (on master-branch):
In the project settings: Layer Names -> 2D Physics: give layer 1 the name "2d_layer_1"
In 3D Physics: give layer 1 the name "3d_layer_1"
In 2d Editor create Root Node: 2D Scene
Append a New Node: NavigationRegion2D
In the Inspector of the NavigationRegion2D create a new Navigation Polygon
Expand the Navigation Polygon and hover layer 1of the parsed Collision Mask property
"3d_layer_1" is displayed
Expected behavior would be that "2d_layer_1" is displayed.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered:
In NavigationPolygon use PROPERTY_HINT_LAYERS_2D_PHYSICS instead of PROPERTY_HINT_LAYERS_3D_PHYSICS to display the correct property hints.
Fixesgodotengine#88154.
(cherry picked from commit 0831ea0)
Tested versions
v4.2.1.stable.official [b09f793]
System information
Godot v4.2.1.stable - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce RTX 2060 (NVIDIA; 31.0.15.3179) - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 Threads)
Issue description
In the inspector for a NavigationPolygon in a NavigationRegion2d node the hints for 3D physics layers are displayed in the Parsed Collision Mask attribute.
As the 2D physics layers are used to scan for colliders anyways, It would be expected to show hints for the 2D physics layers instead of 3D physics layers.
The issue seems to be with this line (on master-branch):
godot/scene/resources/navigation_polygon.cpp
Line 504 in 4e990cd
I will try to create a fix myself.
Steps to reproduce
"3d_layer_1" is displayed
Expected behavior would be that "2d_layer_1" is displayed.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: