Beginner Scripting and Variables and Functions

Variables and Functions - Unity Learn
Source: Unity 

 


What are scripts ?

Scripts are function components which might be applied to GameObjects and modified via the Unity Inspector. A script is a collection of C# code that runs in the "play" state. Scripts can also be used to modify the development process in Unity by creating tools.




Variables and Functions 

Consider variables to be boxes containing specific information. We begin our variable definition by identifying the box type. It could be a whole number or an inc (integer).

The declaration is the first portion, and the initialisation is the second. You just provide start and void update functions when you construct a script. When the item in this script is attached, start is called. To gain any value in the game, use a Dbug.log

Comments

Popular posts from this blog

Introduction

first playable

Prototype