Author Topic: What is tip for [not affected by other button] at Example 11?  (Read 3091 times)

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
What is tip for [not affected by other button] at Example 11?
« on: September 16, 2014, 04:40:47 AM »
At ngui official Example 11-Drag & Drop,

Left, right side's item can be draged and dropped to [above] other side's item.

How this can be?

I made similar scheme with this at my scene, but when I move item from one grid(A) to other grid(B),

if I drag and drop on [top of] B's already existing item, then item go back to original position.

How can I avoid this?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: What is tip for [not affected by other button] at Example 11?
« Reply #1 on: September 16, 2014, 09:53:43 AM »
UIGrid set to vertical sorting.

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: What is tip for [not affected by other button] at Example 11?
« Reply #2 on: September 16, 2014, 08:08:51 PM »
UIGrid set to vertical sorting.
Thx for reply.
But already set to vertical sorting.

I think problem is, B's item's collider blocking newly dragged over A's matching with B's scrollview's rect.

I have same depth between A, B's items like NGUI exampl11, but how NGUI example11's mechanic can do it?

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: What is tip for [not affected by other button] at Example 11?
« Reply #3 on: September 16, 2014, 08:51:27 PM »
This solved.

I created ngui-create-widget, and make it upmost parent 1 generation below of UIRoot, and make all left or right scrollview objects as child of it, then it works when move [on top of] other side's item also.