官术网_书友最值得收藏!

Instance? What is this?

In object-oriented programming, an instance is simply a copy of the object. In this case, there is one copy of our LearningScript file. We are using two terms here: GameObject and Object. Do not mix these up, they are, in fact, two different things. GameObject is an object in your Unity scene. It contains components such as Transform or our newly created LearningScript.

Object in programming means an instance of the script. Don't worry about the terminology too much at this stage. I am sure that the difference between these two will become much clearer soon.

主站蜘蛛池模板: 金塔县| 抚松县| 赣榆县| 中山市| 万宁市| 齐齐哈尔市| 福州市| 抚远县| 秀山| 白水县| 景洪市| 红河县| 凌源市| 微博| 定日县| 长岛县| 舒兰市| 三亚市| 霞浦县| 姚安县| 宁乡县| 赣州市| 城市| 侯马市| 册亨县| 恩平市| 桂平市| 三台县| 宜川县| 元谋县| 西盟| 卢龙县| 神农架林区| 灵台县| 闵行区| 莆田市| 海安县| 松溪县| 武城县| 云和县| 金沙县|