How do I make an object slowly come into the scene?

Hi guys,

I'm a beginner. Now I'm programming a demo to show how you need to assamble a part. I want to show the part and then make it slowly move to the defined position.
How can I do it?

This is what I got now but it's to fast and not smooth

public void Update()
{
if (stepCountUp == 1)
{
while (GameObjects[0].transform.position.x >= -2)
{
Time.timeScale = 0.000000000000001f;
GameObjects[0].transform.Translate(new Vector3(-2f, 0, 0) * speed * Time.deltaTime);

        }


    }
}

Answers

Sign In or Register to comment.