From the course: Cert Prep: Unity Certified Associate Game Developer Scripting with C#

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Printing to the console

Printing to the console

- [Instructor] In the very first video of this chapter we created our first script file which we called first script and we've loaded that here into visual studio to stop editing that file. It contains the default functions and data that unity generates for every newly generated script file. We're going to be building here in this video the very first program that many coders create that's the hello world program. Specifically, this program is just going to print the message, hello world on the screen. We're going to look at how to do that here using this script file. To start let's take a look at the functions that unity has generated for us. We have both the start and the update functions. The start function is going to happen whenever the level or the scene begins inside unity. That's going to be when we hit play on the tool bar and then update, that's going to happened repeatedly for…

Contents