- 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.
- Vue.js快速入門與深入實戰
- Java Web程序設計任務教程
- Unity 2D Game Development Cookbook
- Domain-Driven Design in PHP
- C# Multithreaded and Parallel Programming
- Java Web開發實例大全(基礎卷) (軟件工程師開發大系)
- 一步一步跟我學Scratch3.0案例
- 人人都能開發RPA機器人:UiPath從入門到實戰
- INSTANT Apache Hive Essentials How-to
- Python應用開發技術
- JavaEE架構與程序設計
- Learning Shiny
- Head First Kotlin程序設計
- Getting Started with RethinkDB
- Web前端開發技術實踐指導教程