Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#96576·godot

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

  1. Add 2 Sprite2Ds
  2. Make them overlay
  3. Change z-index so that sprite further in tree appears below (contrary to default drawing order)
  4. Click intersection point

Minimal reproduction project (MRP)

N/A

Source: godotengine/godot

View original on GitHubView discussion on GitHub