Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    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:
    23
    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:
    384
    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:
    23
    Thank you ^_^
     
    Ted_Wikman likes this.
unityunity