- Learning C# by Developing Games with Unity 3D Beginner's Guide
- Terry Norton
- 90字
- 2021-08-04 10:04:00
Displaying public variables in the Inspector panel
I'm sure you're wondering what the word public
means at the beginning of a variable statement:
public int number1 = 2;
It means that the variable will be visible and accessible. It will be visible as a property in the Inspector panel so that you can manipulate the value stored in the variable. It also means it can be accessed from other scripts using the Dot Syntax. You'll learn more about the Dot Syntax in Chapter 6, Using Dot Syntax for Object Communication.
推薦閱讀
- Building a RESTful Web Service with Spring
- INSTANT MinGW Starter
- Getting Started with Laravel 4
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Vue.js 2 Web Development Projects
- Citrix XenServer企業(yè)運(yùn)維實(shí)戰(zhàn)
- 大話Java:程序設(shè)計(jì)從入門到精通
- 計(jì)算機(jī)應(yīng)用技能實(shí)訓(xùn)教程
- Mastering Android Studio 3
- Python編程快速上手2
- Clojure for Finance
- Python程序設(shè)計(jì)教程
- Learning Zimbra Server Essentials
- Learning Azure DocumentDB
- Python數(shù)據(jù)分析與挖掘?qū)崙?zhàn)(第2版)