Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Johanna on October 07, 2014, 03:01:45 PM
-
Hey there,
In Unity 2D, I have a scene with a background sprite and a label in front of it. Unfortunately, I can not grab and drag the label properly. The cursor shows me that I can grab it, but when I hit the mouse button, the background sprite is hit instead of the label.
I also have buttons in the scene, but they can be dragged normally.
Did I miss something?
Greetings
Johanna
-
Check the depth of the label,and make sure that the Move tool is selected, not the 2d rect tool. NGUI uses its own handles, while uGUI uses the new built in 2d handles.
-
Hmm it seems to happen because I did not create the background sprite with NGUI.
The sprite is further in the background on the z axis, but of course has no NGUI depth.
When I want to create an own background sprite with NGUI I have to create an Atlas, right?
-
Nope. You can draw textures using UITexture (ALT+SHIFT+T), and you can draw Unity 2D sprites using UI2DSprite (ALT+SHIFT+D).
-
Ah thanks, the UI texture works and now I can also move the label without any problems.
Thank you very much!