From the course: Unity: Interactivity for AEC

Scripting tools in Unity - Unity Tutorial

From the course: Unity: Interactivity for AEC

Start my 1-month free trial

Scripting tools in Unity

- [Instructor] In this course, we're going to be doing a lot of Unity scripting. And this is how we will create our interactivity. So before we get started, let's make sure that we're all on the same page and we're using the same script editor. So, the first thing you want to do is go into our preferences. We're going to go into Edit, Preferences, and then under External Tools, you'll see the External Script Editor. Now we are going to be using MonoDevelop which is built into Unity. If you want, you can use another script editor such as Visual Studio or whatever text editor you want. Now I like MonoDevelop because it does do a lot of things that are Unity specific, such as give you hints for function names and that sort of thing. So I'm going to leave this at MonoDevelop and close it. Now if we want, we can create a Basic script. Now in this course we are going to be using what are called C# scripts, and that's spelled C and the pound sign, so C#. And this is a Microsoft based language that is very similar to the C programming language. Now if you want to learn more about C#, you can certainly take any number of courses that we have in our library on the language. Now to create a script all you have to do is just right click, and go create C# script. And that'll create a script in our Assets window. Now if I double click on this script, it should show up in MonoDevelop. Now this is a blank script, but as you can see, we've got a number of great tools here in MonoDevelop. The first one is just parenthesis. It actually will go ahead and make sure that you know where the open and close of all of your parenthesis and braces are. So go ahead and set up your programming environment, and we'll get started with scripting.

Contents