当前位置:网站首页>Unity script introduction day01

Unity script introduction day01

2022-07-04 15:21:00 @Night Charm

Script is the code attached to the game object to define the behavior instructions of the game object , Need to inherit from MonoBehaviour class .
The file name and class name must be consistent .
Unity Support two advanced programming languages :C#、JavaScript
Grammatical structure :
using  Namespace ;
public class  Class name :MonoBehaviour
{
        void   Method name ()
        {
                Debug.Log(" Debug display information ");
                print(" Nature is Debug.Log Method ");
        }
}

The build process : Source code --(CLS)-> Interlingua --(Mono Runtime)-> Machine code

原网站

版权声明
本文为[@Night Charm]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041413411334.html