Playmaker Forum

PlayMaker Updates & Downloads => Official Action Updates => Topic started by: TIGGYsmalls on May 11, 2013, 01:09:56 PM

Title: World to Screen Point. Top value.
Post by: TIGGYsmalls on May 11, 2013, 01:09:56 PM
This was confusing me for a little while but.

1 minus Store Screen Y is the true screen Y Position.

I know it's only a little thing but it would make sense to correct it in the action.
Title: Re: World to Screen Point. Top value.
Post by: jeanfabre on May 12, 2013, 03:59:00 AM
Hi,

I think it's because you need to take in account eh fact that Unity has two different screen reference system.

 Please read this to learn more about these reference system, and also, what action are you using exactly?

http://docs.unity3d.com/Documentation/ScriptReference/Camera.ScreenToViewportPoint.html

bye,

 Jean
Title: Re: World to Screen Point. Top value.
Post by: TIGGYsmalls on May 12, 2013, 10:34:24 AM
This is an example of what I'm using.

Also, if there were an alignment option in a GUI Button/Box/Label that would be useful.
Title: Re: World to Screen Point. Top value.
Post by: jeanfabre on May 13, 2013, 04:55:12 AM
Hi,

 There is actually an action for this "GuiLayout Begin Area Follow Object", this will all be done for you.

https://hutonggames.fogbugz.com/default.asp?W422

Bye,

 Jean