playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Set GUI texture pixel inset size action [SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
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
»
Logged
Alex Chouls
Administrator
Hero Member
Posts: 4002
Official Playmaker Support
Re: Set GUI texture pixel inset size action
«
Reply #1 on:
June 20, 2014, 09:30:32 AM »
http://hutonggames.com/playmakerforum/index.php?topic=776.msg3128#msg3128
You could also use Set Property.
Logged
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?)
Logged
Alex Chouls
Administrator
Hero Member
Posts: 4002
Official Playmaker Support
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).
Logged
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!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Set GUI texture pixel inset size action [SOLVED]