S
S
Shameless192020-01-05 05:20:22
Unity
Shameless19, 2020-01-05 05:20:22

How to hide the previous Gameobj simultaneously with the activation of a new Gameobj?

There are a number of invisible objects. How to make it so that when one of the objects is activated, the old object ceases to be active. Those. so that only one object always remains on the stage, and not a hellishly scary bunch of selected pictures.
It's funny but I've been trying all night to come up with a solution

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Alkhimenko, 2020-02-19
@Shameless19

Store the object in a variable. When a new object appears - hide the old one through a variable and assign the new one to this variable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question