Software Development

Getting Started Building 3D Simulations In Unity3D, Part 1

Welcome to part one of a three-part blog series on Unity 3D. In this series, we will create a simple 3D game in Unity3D with rich controls. Part one will cover how to set up Unity3D. Part two will teach you how to control Unity3D using C#. The third and final post in this series will delve into actually making a simple game using Unity3D.

I’ve used Unity for quite awhile. It’s pretty much the go-to for any mobile game, even the recently popular Pokemon Go (which my wife is crazy about).

So, in this post, we’ll be talking about how to set up Unity 3D. Don’t be afraid: these posts looks long, but there are a lot of screenshots to make sure it’s easy for you to follow along.

Let’s Get Started

First, you will need to download Unity3d. Do so here.

Open UnityDownloadAssistant.exe and click through setup.

Unity3D1

Select Defaults

If you are running on Windows, I would select “Microsoft Visual Studio Tools for Unity3D.” This will allow you to use Visual Studio to debug and write your C#.

Alternatively, if you are using Mac OSX, you can use the built-in MonoDevelop which will come by default.

Unity3D2

Once the Download and Install are complete, Unity3D requires a user/password to continue. Click “create one” to go to Unity3D’s website to create an account (they will send a verify email). Once you have your account, sign in.

Unity3D3

Once signed into Unity3D, select “Personal Edition.” The Personal Edition is a lighter version but has about 95% of what the pro version has for features. It will allow you to develop and deploy your applications for free.

Unity3D4

Now that Unity3D is all set up, let’s create our first project. Click “New Project.”

Unity3D5

Let’s call the project “Example Project” and put it in our source folder. Select “3D” and click “Create Project.”

For this project, we will skip the “Asset Packages;” this option will allow you to add pre-created asset packages to your project to jump-start you along.

Unity3D6

Once you press “Create Project,” Unity3d with build a folder structure and insert any pre-packaged assets.

It will by default create four folders: Assets, Library, ProjectSettings and Temp. The Assets folder will be where all your created and pre-packaged assets will live during development. Library and Temp are Unity3D files used for version control and any temporary files created for assets.

The Editor

Unity3D should then open the editor window (which has a bunch of windows) and should create and set itself up as a default, unsaved theme. The windows are modular and allow you to set up the editor to your desired look and feel. You can select a tab and drag it to its own window and/or to an already-created window.

Unity3D7

The Hierarchy Window displays all assets and objects in a scene. This will allow you to see the layout of your scene visually from a hierarchical view, which can help you to group/parent objects to each other and select them for editing.

Unity3D8

The Project allows you to see your Assets folder which will allow to drag-and-drop assets into the hierarchy window as well as open/modify scripts and assets in the external editor.

Unity3D9

The scene window allows you to see and modify/select assets in a 3D space. This is a static view of the 3D space and by default won’t employ all shaders and execute scripts. This allows you to see a simple state of objects.

Unity3D91

The Game Window is a live game preview that will allow you to run your app and execute code as if you deployed it.

Unity3D92

The Inspector Window allows you to edit game objects, either from the hierarchical view or from the asset window.

Unity3D93

Wrap Up

In this post we discussed how to get started with Unity 3D and some of the particulars you should know.

In our next post (later on this week), we are going to discuss how to use C# to control Unity 3D. Then in our third and final post, we will talk about actually making a simple game using Unity3D.

Greg Yotz

Greg Yotz is a software architect at Keyhole Software with 10 years of experience in cross-platform development. He has a big passion for 3D development, and is an avid aviation enthusiast and gamer.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button