Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Change sprite in sprite renderer via [AnimationClip]

Discussion in 'Project Tiny' started by Seaqqull, Nov 27, 2020.

  1. Seaqqull

    Seaqqull

    Joined:
    Aug 3, 2018
    Posts:
    24
    Hello, I want to do animation of 2-d sprite (via animation clip, but it doesn't work - tried to change sprite of sprite renderer).
    Is there any other way to change sprite of sprite renderer during runtime to simulate sprite animation?.
     
  2. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    916
    Hello @Seaqqull,
    Using the Unity animation system to change sprites is not supported in the current Project Tiny version. In TinySpaceship we created a workaround for the explosion animation. You can see our solution here.
     
    Seaqqull likes this.
  3. Seaqqull

    Seaqqull

    Joined:
    Aug 3, 2018
    Posts:
    24
    Thank you ^_^
     
    Ted_Wikman likes this.