playMaker

Author Topic: Make UI dragable.  (Read 1098 times)

MichaelPatriot21

  • Playmaker Newbie
  • *
  • Posts: 23
Make UI dragable.
« on: June 16, 2019, 09:06:16 PM »
How do I make ui, like image, draggable by the player? I'm making that you play in a virtual desktop where you can click on buttons to open windows. I want to make the windows draggable like on a real computer.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Make UI dragable.
« Reply #1 on: June 17, 2019, 03:43:12 AM »
Hi,

 you can set a canvas render mode to Worldspace and then it will be sitting in the world like any other gameobject, which means you can then have inside a Panel with some draggable features, just like you have in a flat UI.

There are drag samples on the Ecosystem to learn about dragging and dropping, they apply as is if the canvas render mode is world.

Bye,

 Jean

MichaelPatriot21

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Make UI dragable.
« Reply #2 on: June 17, 2019, 12:20:38 PM »
I don't quite follow, I'm making a 2d game, in the image attached I'm trying to make the UI, for example the e-mail button, draggable by the player.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Make UI dragable.
« Reply #3 on: June 18, 2019, 12:12:27 PM »
Hi,

Let me put a drag sample on the Ecosystem and It will be clearer. it will be available tomorrow.


Bye,

 Jean