V
V
Vqrlamov2021-08-06 13:46:52
Unity
Vqrlamov, 2021-08-06 13:46:52

How to make Transform animation only on Y?

I want to make an animation of a coin along Y through Animation, Transform, Position, The animation works, but if you duplicate a coin and move it to another place, then when the game starts, the duplicated coin moves to the place of the first one. You can of course change the position of the second coin in the Animation, but this is too long if there are a lot of coins on the stage. Is there any other way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Crebor, 2021-08-06
@Vqrlamov

Create an empty gameobject and place the coin there as a child object. Create an animation new animation for the main gameobject and animate the child object in it.
If it doesn't work - unsubscribe, I'll shoot a video.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question