Lifecycle (term)

2025/12/27

Type
Learning Resource
Format
Glossary Article
Version
General
Subject Tags
Code
Assets
All else
Copyright 2016-2026, GDQuest
Created
2026/02/16
Updated
2025/12/27

Lifecycle (term)

In OOP parlance, the term "lifecycle" refers to the logic governing creation, lifetime, and destruction of an object.

For example, when opening a file, GDScript needs to:

Often, in GDScript, we talk of "lifecycle" when discussing the order in which functions are called during the node lifecycle. For example, when a node is added to the scene tree, the _enter_tree() function is called. When the node is removed from the scene tree, the _exit_tree() function is called. Other objects rarely have a lifecycle per se, even if all objects have at least the _init() function.

Become an Indie Gamedev with GDQuest!

Don't stop here. Step-by-step tutorials are fun but they only take you so far.

Try one of our proven study programs to become an independent Gamedev truly capable of realizing the games you’ve always wanted to make.

Nathan

Founder and teacher at GDQuest
  • Starter Kit
  • Learn Gamedev from Zero
Check out GDSchool

You're welcome in our little community

Get help from peers and pros on GDQuest's Discord server!

20,000 membersJoin Server

Contribute to GDQuest's Free Library

There are multiple ways you can join our effort to create free and open source gamedev resources that are accessible to everyone!