PlayMaker Help & Tips > Android Help

Move uGUI objects around [SOLVED]

(1/2) > >>

Krillan87:
Hi,
So I'm getting nutts over here!

I've been watching every tutorial I can find but they are either 1) outdated 2) showing advanced 3d movement 3) 2d functionality with a PC-mouse.

With all these 3 combined I really feel that I should be able to create my simple app, but I can't make it work!

SO basically I only have a straightforward 2d app. I just want to move an image around. The image is a child of a canvas (The whole app is just one big canvas and the different buttons are just images/pictures that you can press)

I felt that this must be the easiest possible app there is, just one big canvas with text and simple buttons.

The issue is that I do not understand what kind of actions I should use. How do I transform the screen point to world point on the canvas? And what should I use to move the picture? "Rect Transform Set Local Position"?

I almost got it to work but not fully, I can't bring the picture to the left side of the screen (maybe something to do with the normalize?)

Anyhow. Does anyone have a basic fucking tutorial for this super easy stuff? I feels so frustrating that I have to turn my app into a 3d game to get it to work lol.

/ Christian

verybinary:
How far to the left can you get? If it stops in the middle, there may be some kind of conflict with negative numbers? Is your canvas set to constant pixel size or scale, and what numbers you got in those boxes? Have you tried any other transform options?

jeanfabre:
Hi,

 make sure you study the samples on the Ecosysten, you will have 2 samples showing how to drag, and how to drag and drop.



 Bye,

 Jean

Krillan87:

--- Quote from: jeanfabre on May 07, 2018, 02:39:23 AM ---Hi,

 make sure you study the samples on the Ecosysten, you will have 2 samples showing how to drag, and how to drag and drop.



 Bye,

 Jean

--- End quote ---

Hello!

Sorry for extreme late reply but I was so sad that I did not get anything to work last time that i gave up.

I just read in the patch notes for playmaker 1.9 that:
"Integrated UI Actions and Events (previously available us uGUI Addon)"

Does this make your old reply out-dated? Do i still need the "u Gui Drax proxy" and other proxys or is there an easier way now?

djaydino:
Hi.
No they are not outdated :)
As many users use UI, Playmaker has added default actions that you can use.
You can keep using ugui and/or you can also use the UI actions.

for the drag i think its still best to use uGui

Navigation

[0] Message Index

[#] Next page

Go to full version