Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: MichaelPatriot21 on June 16, 2019, 09:06:16 PM

Title: Make UI dragable.
Post by: MichaelPatriot21 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.
Title: Re: Make UI dragable.
Post by: jeanfabre 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
Title: Re: Make UI dragable.
Post by: MichaelPatriot21 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.
Title: Re: Make UI dragable.
Post by: jeanfabre 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