Simple MVC for Unity

There are a lot of different implementations of MVC design pattern available for Unity, but I’ve noticed one problem with most of them.
They require a lot of knowledge about programming in general, and some of them use some fancy techniques which unnecessarily complicates your code.

And who wants to have hard to read and maintain code? ?


MVC stands for ModelViewController and is one of most used design pattern in IT, but not necessarily in Game Dev. This design pattern is used to separate your code based on use.

Here we have three parts of this pattern:
Model – these are classes responsible for storing and handling data.
View – these are responsible for handling displaying data and receiving input from the user.
Controller – and these are responsible for the logic behind the app in general. They also handle respond to the input from view, and they are passing data into views.

Continue reading “Simple MVC for Unity”

Use strings in a clean way!

By the title of this post, you might already know what I’m going to tell you today. You might think that using strings in code might not be that harmful to your project but believe me, it will.


Each advice you get should start with the question “why?”. So let me explain why you should care about using strings in your code in a proper way! ?

The first of all, you shouldn’t hardcode values in your code in the first place! Of course, this is not always possible, but the programmer should always strive for greatness. ?

When using a lot of strings in your code, it’s starting to get messy. You have to remember where you put specific text, and if you are using the same strings in multiple places, then you have a problem. Especially when you want to make some changes… ?

Continue reading “Use strings in a clean way!”

Coding animations in Unity

We all know that adding a few animations makes a game ten times better!
But what if you are a programmer and all you can do is to write code? You can animate from code!

Principles of Animation

One of the things that you need to understand before you begin to make animations is to start with 12 principles of animation. Those were introduced in the book: “The Illusion of Life: Disney Animation”.
This is a great place to start because it gives you some idea about how to make animations in general. At this point, there is a lot of videos that feature this subject and my favorite one is by AlanBeckerTutorials and I would highly recommend watching it first. ?

Continue reading “Coding animations in Unity”

Building AR game with AR Foundation in Unity

Updated on Sep. 2019 – Updating examples to AR Foundation 2.0+

I ❤️ Unity for what they are doing for the game industry. With the introduction of ARKit for iOS and ARCode for Android, it was just a matter of time when Unity would unify both technologies under one thing. And I was right!

Introducing AR Foundation in Unity! ?

On last GDC they presented a great demo of what AR is currently capable of. And if you are hyped about this tech as I am, you might ask how you can build that?

In the beginning, I was a little bit skeptical if it will work as it’s still in preview, but with building my little project, I found out that it’s much simpler than anything else! ?

Continue reading “Building AR game with AR Foundation in Unity”