Game Development Free Course |Unit 1.6 How to create C# script in unity. |Using C# |Technology Khan|

2 Просмотры
In this video you will learn how to create C# script and how to attach it to game object in unity. we use three different methods.
1: By drag and drop directly to an game object.
2: By drag and drop directly to Inspector.
3: By adding through add component.
What is scripting in Unity? Scripting tells our GameObjects how to behave; it's the scripts and components attached to the GameObjects, and how they interact with each other, that creates your gameplay. Now, scripting in Unity is different from pure programming.
A script must be attached to a GameObject in the scene in order to be called by Unity. Scripts are written in a special language that Unity can understand. And, it's through this language that we can talk to the engine and give it our instructions. The language that's used in Unity is called C# (pronounced C-sharp).
Note: make sure when you attaching script to any gameobject must select that gameobject and remember when you creating C# script name it properly.
#unity 3d game development using c#.

Follow on Facebook

Follow on Instagram

Follow on Twitter

Приключения онлайн
Комментариев нет.