SkillAgentSearch skills...

UnityAnimatorChangeSprite

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

Install / Use

/learn @RetryEntry/UnityAnimatorChangeSprite
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars34
CategoryDevelopment
Updated2y ago
Forks7

Languages

C#

Security Score

60/100

Audited on Apr 19, 2023

No findings