game


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#)


Save and Load Game – Unity3D (C#) People thinks that save and load functions are a little bit complicated in game development. We will use 2 types of game saving and game loading in Unity3D and you will get that it is not as complex as you think. We use […]

Save and Load Game – Unity3D (C#)


Mouse Click on Game Object – Unity3D (C#) There are two ways to perform click function on a game object: 1- Create and attach a script to the target object. Write this function in it. [crayon-63dd6f3be5062710948976/]   2- You can use Physics.Raycast to detect target with ray. You must write […]

Mouse Click on Game Object – Unity3D (C#)



Destroy Object by Hit – Unity3D (C#) Before implement this code, please check if you add “Rigidbody” component to your objects and “Is Trigger” box is selected. Otherwise, it doesn’t work. [crayon-63dd6f3c01e2a743848476/] ©Coffee Break Codes – Destroy Object by Hit – Unity3D (C#)

Destroy Object by Hit – Unity3D (C#)


Character Control with Keyboard – Unity3D (C#) I will show you 2 ways to move your character with keyboard. Create a cube named “Char” and create a script named “Movement”. You can attach this script to Char object but we won’t.  Lets create an object before Start() function: [crayon-63dd6f3c02411724687204/] character is […]

Character Control with Keyboard – Unity3D (C#)