top of page
Search

Day #32 Unity Junior Programmer

Writer: Us Smurf
Us Smurf
Apr 29, 2023
2 min read

In the world of game development, there are a lot of different concepts and skills that you need to be familiar with in order to create a successful game. In this blog post, we will explore some of the new concepts and skills that I learned today.

Optimization: Optimization is the process of making your game run faster and more efficiently. This is important because if your game is slow or laggy, it can negatively impact the player's experience. There are many ways to optimize a game, such as reducing the number of polygons in your models, using object pooling, and caching expensive calculations.

Serialized Fields: Serialized fields are variables in Unity that can be edited in the Inspector. This means that you can change their values without having to recompile your code. This is useful for variables that you want to tweak while testing your game, such as the speed of a character or the strength of an enemy.

readonly / const / static / protected: These are all keywords in C# that can be used to define variables. "readonly" variables can only be set once, "const" variables cannot be changed at all, "static" variables are shared among all instances of a class, and "protected" variables can only be accessed by the class and its descendants.

Event Functions: Event functions are functions in Unity that are called automatically by the game engine. There are many different event functions, such as "Awake()", "Start()", "Update()", and "LateUpdate()". These functions allow you to perform actions at different stages of the game loop.

FixedUpdate() vs. Update() vs. LateUpdate(): FixedUpdate(), Update(), and LateUpdate() are all event functions in Unity. FixedUpdate() is called at a fixed interval, typically used for physics calculations. Update() is called once per frame, typically used for updating the game state. LateUpdate() is called after all Update() functions, typically used for camera positioning.

Awake() vs. Start(): Awake() and Start() are both event functions in Unity. Awake() is called when the object is instantiated, before Start(). Start() is called after all Awake() functions, typically used for initializing the game state.

Object Pooling: Object pooling is a technique used to reuse game objects instead of creating and destroying them constantly. This can improve performance by reducing the number of garbage collections, which can cause performance hiccups. By pooling objects, you can also reduce the time it takes to create new objects, which can improve the player's experience.

In conclusion, there are many new concepts and skills to learn in game development, and these are just a few of them. By understanding optimization, serialized fields, keywords like readonly, const, static, and protected, event functions like FixedUpdate(), Update(), and LateUpdate(), the difference between Awake() and Start(), and object pooling, you can improve the performance and player experience of your game.


 
 
 

Recent Posts

See All
Unity AR Development 3

Today, I had the opportunity to delve into the exciting world of AR development through a tutorial that focused on deploying AR projects...

 
 
 

Comments


Crylix.exe

  • alt.text.label.Instagram
  • alt.text.label.LinkedIn

©2023 by Crylix.exe. Met trots gemaakt met Wix.com

bottom of page