playMaker

Author Topic: UI on Top  (Read 2550 times)

Bartec

  • Playmaker Newbie
  • *
  • Posts: 14
UI on Top
« on: November 28, 2017, 08:06:59 AM »
Hi all,
while dragging ui object set a new parent, but keep dragged position.

i want, that this ui object should appear on top of all other ui objects.

but everytime i assingned the object to be a child of empty it wont keep its position.


regards

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: UI on Top
« Reply #1 on: November 28, 2017, 12:48:55 PM »
Hi,
Can you show some pictures or video of what you  are trying to do?

Bartec

  • Playmaker Newbie
  • *
  • Posts: 14
Re: UI on Top
« Reply #2 on: November 28, 2017, 03:02:27 PM »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: UI on Top
« Reply #3 on: November 28, 2017, 05:49:52 PM »
Hi,
In my inventory system tutorial is use a parent (placed last in the hierarchy inside the canvas)

and i use the ugui pointer proxy, then i use the "Get Last Pointer Data Info" action for the movement.

Look from 11:40 - 15:00 and then from 40:40


Bartec

  • Playmaker Newbie
  • *
  • Posts: 14
Re: UI on Top
« Reply #4 on: November 30, 2017, 05:32:35 PM »

hey,

thanks for help and really usefull stuff, but on set transform parent the item is somewhere else, but not under my mouse.

so my layout group component is the issue!!!, what i did wrong? and how to setup layout group correct?

regards

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: UI on Top
« Reply #5 on: November 30, 2017, 08:28:09 PM »
Hi.
If you want you can pm me the project and i can have a look?

or if you can show your setup in some pictures or video (Fsm/States/Actions/issue)
the more info the better :)

Bartec

  • Playmaker Newbie
  • *
  • Posts: 14
Re: UI on Top
« Reply #6 on: December 01, 2017, 02:27:56 AM »
Hey,

will send you pm, but not before tommorow.


thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: UI on Top
« Reply #7 on: December 04, 2017, 02:58:29 PM »
Hi,
I got your project and i got it to work, but it still has an issue when the card is selected it will move to the Drag (Parent) position for a split second.
And the reason is because it is inside this layout group.
But you can try it out, just get the package below and import the scene to your project.

I think this needs a different approach.

so i look around on you tube and found this :


But did not have time yet to see how it all works, i will try to do so this week.

Bartec

  • Playmaker Newbie
  • *
  • Posts: 14
Re: UI on Top
« Reply #8 on: December 04, 2017, 06:46:19 PM »

Thanks for great support!!


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: UI on Top
« Reply #9 on: December 07, 2017, 04:55:21 PM »
Hi.
I remade and updated the system and i build it on unity 5.6.4
and everything works fine there. card not jumping.

But when i tested on 2017.2 the card jumps again,
It has to do with the "set (transform) parent" (tried both) and i don't think it is a playmaker issue, i think it is a Unity issue.

Because i also made a build with 2017.2 (pc/mac/linux) and there i works fine also.