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

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.

主站蜘蛛池模板: 多伦县| 东兴市| 曲靖市| 五峰| 东海县| 礼泉县| 汉源县| 卢氏县| 虎林市| 大名县| 会理县| 钟祥市| 武邑县| 乌恰县| 衢州市| 和政县| 京山县| 元江| 五指山市| 二连浩特市| 略阳县| 龙州县| 缙云县| 花垣县| 石嘴山市| 五莲县| 定边县| 磐石市| 灵川县| 新源县| 达拉特旗| 宜城市| 阳江市| 广汉市| 吴川市| 乌鲁木齐市| 额尔古纳市| 潍坊市| 茌平县| 大方县| 石屏县|