Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Somoraze on November 19, 2013, 11:11:32 PM
-
Hi,
after a drop, my prefab is not instantiated when I drop the item on the 3d object (a cube). In the demo, the "3d" gameObject (the parent) has a UIPanel attached to it... but even with this in my scene, the prefab is not instantiated. It does have a box collider and the dragDropSurface script.
Would you have any idea how to make this work? Anything I would have forgotten?
The drag works fine, but when I drop the item, the ui item goes back to the ui container, and the prefab is not instantiated on the cube (the 3d object with the surface script attached to it).
Thanks
-
Did you forget to add a UICamera to your camera that draws your 3D object? Without it there won't be any events sent to that object.
-
Thanks a lot! I really appreciate your help!
Could you tell me why we need a UICamera along with the normal cam?
-
UICamera was poorly named. It's basically the Event Manager. It's what sends out events.
-
OK thanks :)
-
http://www.tasharen.com/forum/index.php?topic=6711.0 btw.