Skip to content

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

Notifications You must be signed in to change notification settings

RetryEntry/UnityAnimatorChangeSprite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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