playMaker

Author Topic: World to Screen Point. Top value.  (Read 1880 times)

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
    • View Profile
World to Screen Point. Top value.
« on: May 11, 2013, 10:09:56 AM »
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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: World to Screen Point. Top value.
« Reply #1 on: May 12, 2013, 12: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

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
    • View Profile
Re: World to Screen Point. Top value.
« Reply #2 on: May 12, 2013, 07: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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: World to Screen Point. Top value.
« Reply #3 on: May 13, 2013, 01: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