playMaker

Author Topic: How do you change the Pixel Offset of Text via Playmaker? [SOLVED]  (Read 978 times)

autumnboy

  • Junior Playmaker
  • **
  • Posts: 53
    • View Profile
Hi, I'm trying to put my text in a specific position via some variables but don't know where to plug these variables in via playmaker. Is there a way to do it with GUILayout Begin area?


 
« Last Edit: June 14, 2014, 06:02:43 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3618
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: How do you change the Pixel Offset of Text via Playmaker?
« Reply #1 on: June 13, 2014, 09:21:34 PM »
Are you talking about the pixel offset in a GUIText?

If so you can use Set Property to access the pixelOffset property. E.g., drag the GUIText component into the actions panel then find the pixelOffset property in the dropdown.

GUILayout is quite powerful but not very efficient (especially on mobile devices). You can find out more about GUILayout here:
http://docs.unity3d.com/Manual/gui-Layout.html

autumnboy

  • Junior Playmaker
  • **
  • Posts: 53
    • View Profile
Re: How do you change the Pixel Offset of Text via Playmaker?
« Reply #2 on: June 14, 2014, 05:50:10 PM »
Awesome, that's what I needed. Thanks!