playMaker

Author Topic: Set GUI texture pixel inset size action [SOLVED]  (Read 2840 times)

jayf

  • Playmaker Newbie
  • *
  • Posts: 40
Set GUI texture pixel inset size action [SOLVED]
« on: June 20, 2014, 09:15:15 AM »
Hi.

I'm trying to create a health bar. I've come across several threads explaining how to do this. Some of them include using the "Set GUI texture pixel inset size" action, however I can't find it in the action browser. Has it been removed or replaced with something else?
« Last Edit: June 22, 2014, 09:39:55 AM by jayf »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Set GUI texture pixel inset size action
« Reply #1 on: June 20, 2014, 09:30:32 AM »

jayf

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Set GUI texture pixel inset size action
« Reply #2 on: June 21, 2014, 08:53:34 AM »
Thanks this seems to work. Now the health bar scales down, but I noticed the pivot point is not exactly at the "edge", so it looks like it moves a little while scaling down. How could I change the pivot point? (If possible?)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Set GUI texture pixel inset size action
« Reply #3 on: June 21, 2014, 11:04:58 AM »
I don't think Unity has anchors for GUITextures...

You could either move the texture while scaling it or use Draw Texture instead (might work better in this case).

jayf

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Set GUI texture pixel inset size action
« Reply #4 on: June 22, 2014, 09:39:33 AM »
Yep much better. Thanks!