Author Topic: Can't find Fill Direction or Sprite Type in UI Sprite Parameters  (Read 4889 times)

milliemag

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Hi,

I was trying to create a progress bar that would update as the player loses health. But whenever the player is hit, the sprite reduces inward instead of going from left to right like I wanted. I thought there was supposed to be a way to change the fill direction from left to right, but I don't see the Fill Direction or Sprite Type parameters under UI Sprite.

Thanks,
Milan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't find Fill Direction or Sprite Type in UI Sprite Parameters
« Reply #1 on: July 21, 2016, 11:55:01 AM »
I am not sure what you mean by "reduces inward". Fill direction is specified on the progress bar itself, under the "Appearance" section.

milliemag

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Can't find Fill Direction or Sprite Type in UI Sprite Parameters
« Reply #2 on: July 22, 2016, 12:37:26 AM »
Sorry for being unclear. I met that the bar decreases on both ends (-> bar direction <-)instead of left to right (desired direction -> ).
I have it selected, but it still isn't responding in the way I'd like. Also, I was hoping to have it move from a starting value of 100 instead of 1. Is there any way I can make that happen in Playmaker?

milliemag

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Can't find Fill Direction or Sprite Type in UI Sprite Parameters
« Reply #3 on: July 22, 2016, 12:41:35 AM »
Sorry, I'm trying to get this screenshot link to work, so you can see what I mean.

http://imgur.com/a/8kfrf

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't find Fill Direction or Sprite Type in UI Sprite Parameters
« Reply #4 on: July 24, 2016, 06:40:30 AM »
Start from the basics:

1. Add a sprite (ALT+SHIFT+S), set it to be Sliced like you wanted.
2. Attach UISlider script to it, make the Foreground point to the sprite from #1.
3. Drag the Value slider in inspector.

With that working properly, figure out what's different between what you did and this simple test.

milliemag

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Can't find Fill Direction or Sprite Type in UI Sprite Parameters
« Reply #5 on: July 31, 2016, 11:50:06 AM »
Thanks! I'll try that.