- Home /
Drag and drop GUI elements with JS?
Hi all, I'm trying to set up a system where the player has to drag and drop (or correctly select the order) of a few different GUI elements into place. How would I go about doing this? Looking for JS solutions. Thanks a lot.
Answer by RIw · Apr 23, 2016 at 07:12 PM
Well, I think if you are using the old GUI System ( OnGUI Function ) It won't be possible. I recommend you to learn the new UI System. It is pretty easy to learn, and you don't have to code too much. If you understand the concept of adding new components and reading the data from them, it won't be any problem for you.
before the new UI System, people were using just 2D Sprites like in 2D Games. If you don't want to use the new UI System, maybe this will be useful for you...
Okay, thanks. Are there any resources you'd recommend for learning the new UI system?