C#


Using Device Camera – Unity3D (C#) You can get image from device camera in your scene to use for VR, player portrait etc. It’s pretty easy and tricky. Actually there is no object for device camera. We use the image captured from camera as material and display it on an […]

Using Device Camera – Unity3D (C#)


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


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-63dd5a8db8781613786877/] This class includes […]

Inheritance