playMaker

Author Topic: GUI slider questions  (Read 2581 times)

Pawel

  • Junior Playmaker
  • **
  • Posts: 93
GUI slider questions
« on: August 23, 2013, 11:17:24 AM »
I see that GUI slider Thumb Style & Slider style use string as variables, but what do they do? How do you use Styles?

I'd like to replace the track and the thumb visuals on slider -- How do I go about it?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3998
  • Official Playmaker Support
    • LinkedIn
Re: GUI slider questions
« Reply #1 on: August 23, 2013, 01:16:21 PM »
The styles parameters are named styles in a GUI Skin.

You can make your own GUISkin in the Unity editor:
http://docs.unity3d.com/Documentation/Components/class-GUISkin.html

Then set the skin in Playmaker using Set GUI Skin

Then specify named styles to use in any of the GUI actions.

Pawel

  • Junior Playmaker
  • **
  • Posts: 93
Re: GUI slider questions
« Reply #2 on: August 24, 2013, 08:14:52 AM »
Thanks Alex. This was a big help! Some of the Unity inner workings are so counter intuitive...  :-\