Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: tim.holman on September 14, 2011, 04:07:04 PM

Title: Gui Layout "Layout Options" [SOLVED]
Post by: tim.holman 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?
Title: Re: Gui Layout "Layout Options"
Post by: Alex Chouls 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...

Title: Re: Gui Layout "Layout Options"
Post by: tim.holman 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!!