T
T
theater_of_the_absurd_02021-10-08 20:39:07
Unity
theater_of_the_absurd_0, 2021-10-08 20:39:07

How to make a sprite spawn in a certain area when a button is clicked?

Text quest game. The screen contains text/sprite/description of the essence of the stage, the player is given a choice of action (two buttons). How to implement so that when you click on the selected action, the sprite spawns and at the same time the previous one is debuilt?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KraGen.Developer, 2021-10-08
@KraGenDeveloper

sprite1.SetActive(false);
sprite2.SetActive(true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question