Z
Z
zeni1agent2022-03-03 22:24:02
Unity
zeni1agent, 2022-03-03 22:24:02

How to change image in sprite?

I want to replace an image in a sprite without creating a new sprite.

joint.gameObject.GetComponent<SpriteRenderer>().sprite = Resources.Load<Sprite>("Image");

The main problem is that when I replace the sprite in this way, the mesh with bone animation disappears. How to fix it?
Well, or you can tell how to copy animation with geometry with a sprite

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question