2D selecting ignores `z_index`
Author: KoBeWiCreated Sep 4, 2024Updated Sep 17, 2026
Labelsbugtopic:editorusabilitytopic:2d
Tested versions
4.3 4.2.2
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
If lower node z-index wise is lower in tree, it will be selected through the top node:
https://github.com/user-attachments/assets/8e5ee496-b003-4588-b08f-1547a3bc247d
Steps to reproduce
- Add 2 Sprite2Ds
- Make them overlay
- Change z-index so that sprite further in tree appears below (contrary to default drawing order)
- Click intersection point
Minimal reproduction project (MRP)
N/A
Source: godotengine/godot