This function is used for UI buttons mostly but sometimes we need it in game specs. It is implemented easily with mouse enter-exit listeners. We can change color of an object with renderers. Create a cube object and attach this script to it. At first, define 2 colors for standard […]

Change Color on Hover (Mouseover) – Unity3D (C#)

Create Timer – Unity3D (C#) A visible or background timer runs on most games. We will create an easy one which ticks seconds. In this tutorial we don’t use any value such as integer, float etc. We just need a GUI text. Let’s create. Open your project and create a GUIText. […]

Create Timer – Unity3D (C#)

Strategy Pattern I will try to explain this pattern as simple as I can because it is really simple and useful. Lets define  a problem: Think about that you have employees in different departments with different titles and you need a method which calculates different salaries. Answer 1 – You can write […]

C# Design Patterns in Unity3D : Strategy Pattern

Creating New Game Object at Run Time  – Unity3D (C#) Games not only include driving car or make run a character but also include creating new objects. At this point, “Prefab” thing is included. In that case what is prefab? You can find thousands of definition for prefab but I […]

Creating New Game Object at Run Time – Unity3D ...

Change Camera – Unity3D (C#) Switching between multiple cameras is familiar to everybody from racing games. You can get a view from rear, front, interior etc. It’s easy to implement. If you use two or three cameras, you can assign a key to change camera and make them disabled and […]

Change Camera – Unity3D (C#)

Camera Movement with Mouse – Unity3D (C#) This type of camera controller is mostly used in RTS projects. You can move camera with mouse movement. There are two types of camera movement with mouse: Touch the edges of screen or drag the mouse. In “Drag the Mouse” movement type, player […]

Camera Movement with Mouse – Unity3D (C#)

C# Design Patterns in Unity3D : Singleton In software development, design patterns help us to solve some common problems in our projects. It’s better if you use this patterns as a guide at the start of your project. If you stuck anywhere on your project, it’s time to find out […]

C# Design Patterns in Unity3D : Singleton

As an OOP, you can use inheritance in your projects. This provides easy coding for you. For example, if you will create some of characters in your project, you can create a character class and use it for all different characters. Lets create a character class. [crayon-58116cec8f75b972563529/] This class includes […]


Snow Effect with Particle System – Unity3D In this tutorial, we will create our own snowing effect in scene. I must say that, you can use “Light Snow” system in standard assets of Unity. We will create a snow effect with it too at the end of this post but […]

Snow Effect with Particle System – Unity3D

Create GUI Menu with 3D Objects – Unity3D (C#) There are 2 ways to create a menu for your game: Unity’s GUI elements or custom objects. We will create a menu with custom 3D objects in this tutorial. This type of menu acts like game scene. So, we need a […]

Create GUI Menu with 3D Objects – Unity3D (C#)

Occlusion Culling Tutorial – Unity3D You can use occlusion culling to hide unnecessary object for camera. You don’t need the object behind the camera. So, hide it! !!(This property is free only for Unity3D 5.0 or newer versions.)!! At first, create a terrain and a cube. Edit the static choices […]

Occlusion Culling Tutorial – Unity3D

Creating UI Button – Unity3D There are 2 options to add a button in Unity. You can use UI elements of Unity or you can create your own button with a game object. We will inspect default UI elements of Unity in this post. With 4.6 edition, Unity helps us […]

Creating UI Button – Unity3D