playMaker

Author Topic: Gui Layout "Layout Options" [SOLVED]  (Read 9041 times)

tim.holman

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 49
Gui Layout "Layout Options" [SOLVED]
« on: September 14, 2011, 04:07:04 PM »
I'm currently working on a gui using the GUI Layout actions to create a golf score card using several labels. I haven't yet been able to figure out how to manipulate the layout options. No matter what I try, it does not seem to have any effect on the gui. How are you suppose to use this feature?
« Last Edit: October 05, 2011, 01:58:17 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Gui Layout "Layout Options"
« Reply #1 on: September 14, 2011, 05:55:06 PM »
Are you familiar with GUILayoutOptions from the unity docs?

http://unity3d.com/support/documentation/ScriptReference/GUILayoutOption.html

Or for an overview of GUILayout:

http://unity3d.com/support/documentation/Components/gui-Layout.html

In Playmaker GUILayoutOptions are an array, so you set the number of options you need, then set each option.

Let me know if that helps you get started or if there is another issue...


tim.holman

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 49
Re: Gui Layout "Layout Options"
« Reply #2 on: September 15, 2011, 01:15:19 PM »
Huge help, I should have looked at the Unity docs before!! My problem was that I was using labels and trying to adjust width when I should have been using boxes. Thanks for the help!!