โ† Back to list

๐ŸŽฎ Understanding Update() in Unity: Why my object keeps moving? Step 5

This week I learned something that changed how I see Unity..

Hojiakbar Toxirov ยท 2026-02-15 17:48 ยท 0 claps ยท 1.3 min read
#game-development #unity #beginner-coding #beginnerjourney #gamedevhq
Open on Medium โ†—
Wiki topics: ๐Ÿ’ป ยท Programming ๐ŸŽฎ ยท Gaming

๐ŸŽฎ Understanding Update() in Unity: Why my object keeps moving? Step 5

This week I learned something that changed how I see Unity..

Itโ€™s called Update(). At first, I just copied it because everyone uses it. But I didnโ€™t really understand what it does. Then something clicked. And now it makes sense.

๐Ÿง  What is update()?

Update() is a special method in Unity. Unity runs it automatically. Not once. Not sometimes. It runs every single frame. If your game runs at 60 FPS, that means:

๐Ÿ‘‰ Update() runs 60 times per second. Thatโ€™s why movement goes inside it.

๐Ÿš€ Why my object was moving forever?

When I wrote this:

void Update()
{
    transform.Translate(Vector3.right * 5 * Time.deltaTime);
}

My object started moving continuously. At first I thought: โ€œWhy doesnโ€™t it stop?โ€ Now I understand. Because Unity keeps calling Update() again and again and again. Itโ€™s like a heartbeat for the game.

๐Ÿ” What happens without Update()?

If I put movement inside Start():

void Start()
{
    transform.Translate(Vector3.right);
}

It only moves once. One small step. Thatโ€™s it. So now I see the difference:

  • Start() โ†’ runs once
  • Update() โ†’ runs every frame

๐Ÿงฉ Why this is important?

Games are not static. They need to:

  • Check player input
  • Move objects
  • Update animations
  • Run logic

All of that usually happens inside Update(). Now I donโ€™t just copy it anymore. I understand why itโ€™s there.

๐Ÿง  What Iโ€™m realizing

Game development is not magic. Itโ€™s just systems running repeatedly and responding to conditions. When something moves, itโ€™s not random. Itโ€™s because Unity is asking every frame: โ€œWhat should happen now?โ€ and my script answers.

๐Ÿš€ Whatโ€™s next

Next I want to understand more about: Input system, how to stop movement, maybe jumping logic. Every lesson makes things a little less mysterious and honestly, that feels good.


๋ฉ”ํƒ€๋ฐ์ดํ„ฐ
post_id
8e4d12ed91f5
slug
understanding-update-in-unity-why-my-object-keeps-moving-8e4d12ed91f5
url
https://medium.com/@hendalf/understanding-update-in-unity-why-my-object-keeps-moving-8e4d12ed91f5
canonical_url
https://medium.com/@hendalf/understanding-update-in-unity-why-my-object-keeps-moving-8e4d12ed91f5
author_url
https://medium.com/@hendalf
status
ok
fetched_at
2026-07-24 10:18:17