I’m trying to figure out if this is a unity bug, or if i’m missing something in my implementation.
My problem is very easy to reproduce:
- Create an empty script
- Select the script in the Project-View, click on the C#-Page-Icon and assign a custom icon to it
- Attach the Script to an empty gameobject in the scene - when you deselect the gameobject now, the icon appears.
- Try to Marquee-Select the gameobject now.
It starts flickering, and multi-object selection via the Marquee-Box is impossible.
To me it seems as if the following happens: Every UI-Update unity checks whats under my marquee-box. When it detects the custom icon, it selects the gameobject and then therefore hides the icon. on the next check, there is no more icon under the marquee box, thats why unity deselects the gameobject again.
Any Idea how to solve this? With unity’s built-in components this does work (just try the camera component for example).
Thanks upfront!