Author Topic: UISpriteAnimation with UIStretch  (Read 4208 times)

FizzPow

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
    • FizzPow Games
UISpriteAnimation with UIStretch
« on: October 24, 2013, 01:06:27 PM »
This is causing flicker as it fights between pixel perfect & stretching it looks.  Any solution for this?  I tried parenting with empty game object and putting the Stretch on that, but doesn't work right I think because it has no dimensions.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISpriteAnimation with UIStretch
« Reply #1 on: October 24, 2013, 09:39:53 PM »
You can create a copy of UISpriteAnimation script and comment out the part that does MakePixelPerfect().

FizzPow

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
    • FizzPow Games
Re: UISpriteAnimation with UIStretch
« Reply #2 on: October 25, 2013, 12:08:04 AM »
Thanks, that works, any chance of making this a built-in option in UISpriteAnimation in the future?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISpriteAnimation with UIStretch
« Reply #3 on: October 25, 2013, 12:14:37 AM »
UISpriteAnimation is a very basic example, and is meant to be modified to suit your needs... so I'd rather not.