Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Donkey111 on August 22, 2013, 05:43:48 PM
-
I've set up a horizontal draggable panel that works correctly. I'm now setting up an anchor. When I put the draggable panel into the center anchor and run the game everything works fine! Until I try to scroll through the list. When I scroll, the draggable contents go way far outside the clippable range... They essentially disappear with the slightest movement.
I have my hierarchy set up like this:
-FrontEnd(UIPanel)
-Camera
-Center Anchor
-Offset
-UI Panel / UI draggable panel
-Grid
-Option 1
-Option 2
-Option 3
-etc.
I've tried getting rid of the offset (I don't need an offset really) and that didn't help. As soon as I delete the anchor it works fine again. I've searched for this particular issue and couldn't find anything. Any suggestions?
-
I've tried playing with all the anchor variables and using different draggable panels. For now, I've come to the conclusion that anchors and draggable panels don't mix. Unless anyone has suggestions???
-
Center-anchor outside your draggable panel has nothing to do with it. Double check your setup compared to what I have in the examples, and pay close attention to the drag constraints set on the draggable panel script.
-
Yes, you were right. I tried dropping it on an empty gameobject and had similar results. Somehow when I created the anchor the scale was not set to 1, 1, 1 (it was at 360,360). So when I dropped my stuff in, all the scales adjusted and it screwed everything up.
Thanks and sorry for the dumb question.