- Learning C# 7 By Developing Games with Unity 2017(Third Edition)
- Micael DaGra?a Greg Lukosek
- 170字
- 2021-07-02 19:59:41
Variables become component properties
When we refer to components, we are basically referring to the available functions of a GameObject, for example, the human body has many functions, such as talking, moving, and observing. Now let's say that we want the human body to move faster. What is the function linked to that action? Movement. So in order to make our body move faster, we would need to create a script that had access to the movement component and then we would use that to make the body move faster. Just like in real life, different GameObjects can also have different components, for example, the camera component can only be accessed from a camera. There are plenty of components that already exist that were created by Unity's programmers, but we can also write our own components. This means that all the properties that we see in Inspector are just variables of some type. They simply store data that will be used by some method.
- Learning Docker
- Python入門很簡(jiǎn)單
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- 面向?qū)ο蟪绦蛟O(shè)計(jì)(Java版)
- 數(shù)據(jù)結(jié)構(gòu)案例教程(C/C++版)
- INSTANT Silverlight 5 Animation
- Essential C++(中文版)
- 3ds Max印象 電視欄目包裝動(dòng)畫與特效制作
- 區(qū)塊鏈項(xiàng)目開發(fā)指南
- Learning Bootstrap 4(Second Edition)
- Visual Basic語(yǔ)言程序設(shè)計(jì)基礎(chǔ)(第3版)
- 絕密原型檔案:看看專業(yè)產(chǎn)品經(jīng)理的原型是什么樣
- Spring Boot 3:入門與應(yīng)用實(shí)戰(zhàn)
- Visual C++程序開發(fā)范例寶典
- SAP HANA Cookbook