- Learning C# 7 By Developing Games with Unity 2017(Third Edition)
- Micael DaGra?a Greg Lukosek
- 158字
- 2021-07-02 19:59:39
What's with the dots?
When you look at code written by others, you'll see words with periods separating them. What the heck is that? It looks complicated, doesn't it? The following is an example from the Unity documentation:
transform.position.x
Don't concern yourself with what the preceding code means, as that comes later. I just want you to see the dots.
This is called dot syntax. The following is another example. It's the fictitious address of my house: UnitedKingdom, Bedfordshire, Sandy, 10MyStreet. Looks funny, doesn't it? That's because I used the syntax (grammar) of C# instead of the post office. However, I'll bet that if you look closely, you can easily figure out how to find my house. We'll get into much more at a later stage. For now, think of dot syntax as an address, starting from a big thing, a country in this case, and narrowing down to the most precise part that we want to access.
- 程序員面試筆試寶典(第3版)
- 看透JavaScript:原理、方法與實踐
- HBase從入門到實戰
- Java:Data Science Made Easy
- Mastering AndEngine Game Development
- SQL Server 2016數據庫應用與開發習題解答與上機指導
- Linux命令行與shell腳本編程大全(第4版)
- HoloLens與混合現實開發
- Mastering AWS Security
- Python開發基礎
- 寫給青少年的人工智能(Python版·微課視頻版)
- PHP+MySQL Web應用開發教程
- H5頁面設計與制作(全彩慕課版·第2版)
- Tkinter GUI Programming by Example
- 編譯原理學習與實踐指導