Category Archives: Unity 3D

Unity 3D – Use scripts with Unity editor .

You need to have Unity versions 2018.2b or 2017.4: You need to create a default project and add a new C# script. The script I used is named EditorWindowTest . This is the source code of this script:

This custom editor in Unity can be used for many issues. Here is the result of… Read More »

Unity 3D – Intro about attributes and events .

This will update your component into visual area of Unity. Some public variables will be fasioned and change with your selected attributes. The attributes can be used into programming using the [] . The class can have on top this attribute and is follow by the code source. this will add a url

this… Read More »

Unity 3D – using the gyroscope.

If your tablet, phone or laptop has a gyroscope device then you can used with Unity 3D game engine. Create your project and use this C# script to test and show info about your gyroscope device.

Unity 3D – C# script – save and load file.

This is a simple C# script example for a C# class Player. The class Player come with this content into Player.cs C# script:

To make this C# script for saving the Player into one file I used this C# script named SaveLoadManager.cs:

The script come with two parts for save and load files.… Read More »