Skip to content

RetryEntry/UnityAnimatorChangeSprite

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

UnityAnimatorChangeSprite

This script will swap sprite of an active animator to another one with the same dimensions.

Just add this script to a gameobject with animator and change "swappedTexture" through script or in editor and place swappedTexture.shader into Resources/Shaders folder. Afterwards you can swap texture through the script with a SwapTexture(Texture2D _toWhat) function. This will make animation of characters with different clothes way easier. You can animate main character and swap his clothes on the fly

About

This script will swap sprite of an active animator to another one with the same dimensions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published