Search Unity

There is no way to change a sprite sheet?

Discussion in '2D' started by IntDev, Apr 23, 2015.

  1. IntDev

    IntDev

    Joined:
    Jan 14, 2013
    Posts:
    152
    I have a sprite sheet for each character with same animations (walk, jump, etc). They're a perfect match. How can I just change this base image instead of recreating all the animations for each sheet?
     
  2. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683


    i guess we are supposed to string search and replace sprites in LateUpdate from resources folder
     
  3. IntDev

    IntDev

    Joined:
    Jan 14, 2013
    Posts:
    152
    No! In that example he uses body parts (he animated only position/rotation). In my case, have the sprite property animated.
     
  4. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    that method still 'works'
    if you animate sprites or position/rotation
     
  5. IntDev

    IntDev

    Joined:
    Jan 14, 2013
    Posts:
    152
    How? I can't see. There is no way to dynamically change a sprite being animated by the animator. Because it will override it to the default set in the animation.
     
  6. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
     
  7. Kuan

    Kuan

    Unity Technologies

    Joined:
    Jul 2, 2014
    Posts:
    87