Beginner Scripting: Conventions and Syntax


This weeks coding task gave an example that really helped me understand coding in Unity. This was the Country.City.Street analogy for the code transform.position.y. This was a really helpful way to understand why we are picking the following code in a sequence.

Another tip from this coding task was that indentation is key! Using the Tab key is a quick way to keep code clear and legible for yourself and also leaving comments is useful for yourself or if you are creating a game with someone else.

// leaves a comment before a code

/* */ leaves a longer comment or can block out a certain line of code you don't want the programme to run

Comments

Popular Posts