UNITY BASICS

  1. Learning the interface <link>
  2. Asset Workflow <link>
  3. Creating Scenes <link>
  4. Publishing Builds <link>

UNITY TUTORIALS

  1. User Interface Tutorial <pdf>
  2. Scripting in Unity <pdf>

UNITY GAME PLAY

  1. Prefabs and Components <link>
  2. Transforms <link>
  3. Getting User Input <link>
  4. Audio Components <link>
  5. GUI Elements <link>
  6. Lights <link>
  7. Cameras <link>
  8. Particle Systems <link>

MESH PARTICLE EMITTERS

Mesh Particle Emitters are generally used when you need high control over where to emit particles.

For example, when you want to create a flaming sword:

1. Drag a mesh into the scene.
2. Remove the Mesh Renderer by right-clicking on the Mesh Renderer’s Inspector title bar and choose Remove Component.
3. Choose Mesh Particle Emitter from the Component->Particles menu.
4. Choose Particle Animator from the Component->Particles menu.
5. Choose Particle Renderer from the Component->Particles menu.

You should now see particles emitting from the mesh.

Play around with the values in the Mesh Particle Emitter.

Especially enable Interpolate Triangles in the Mesh Particle Emitter Inspector and set Min Normal Velocity and Max Normal Velocity to 1.

To customize the look of the particles that are emitted:

1. Choose Assets->Create->Material from the menu bar.
2. In the Material Inspector, select Particles->Additive from the shader drop-down.
3. Drag & drop a texture from the Project view onto the texture slot in the Material Inspector.
4. Drag the Material from the Project View onto the Particle System in the Scene View.

You should now see textured particles emitting from the mesh.

UNITY PACKAGES

As you build your game, Unity stores a lot of metadata about your assets (import settings, links to other assets, etc.). If you want to take your assets into a different project, there is a specific way to do that. Here’s how to easily move assets between projects and still preserve all this info.

1. In the Project View, select all the asset files you want to export.
2. Choose Assets->Export Package… from the menubar.
3. Name and save the package anywhere you like.
4. Open the project you want to bring the assets into.
5. Choose Assets->Import Package… from the menubar.
6. Select your package file saved in step 3.

Hints

* When exporting a package Unity can export all dependencies as well. So for example if you select a Scene and export a package with all dependencies, then all models, textures and other assets that appear in the scene will be exported as well. This can be a quick way of exporting a bunch of assets without manually locating them all.
* If you store your Exported Package in the Standard Packages folder next to your Unity application, they will appear in the Create New Project dialog.

USING WATER IN UNITY

In most cases you just need to place one of the existing Prefabs into your scene (make sure to have the Standard Assets installed):

* Unity has Daylight Simple Water and Nighttime Simple Water in Standard Assets->Water.
* Unity Pro has Daylight Water and Nighttime Water in Pro Standard Assets->Water (but it needs some assets from Standard Assets->Water as well). Water mode (Simple, Reflective, Refractive) can be set in the Inspector.

The prefab uses an oval-shaped mesh for the water. If you need to use a different Mesh the easiest way is to simply change it in the Mesh Filter of the water object.

SKYBOXES IN UNITY

A Skybox is a 6-sided cube that is drawn behind all graphics in the game. Here are the steps to create one:

1. Make 6 textures that correspond to each of the 6 sides of the skybox and put them into your project’s Assets folder.
2. For each texture you need to change the wrap mode from Repeat to Clamp. If you don’t do this colors on the edges will not match up:

# Create a new Material by choosing Assets->Create->Material from the menu bar.
# Select the shader drop-down in the top of the Inspector, choose RenderFX->Skybox.
# Assign the 6 textures to each texture slot in the material. You can do this by dragging each texture from the Project View onto the corresponding slots.

To Assign the skybox to the scene you’re working on:

1. Choose Edit->Render Settings from the menu bar.
2. Drag the new Skybox Material to the Skybox Material slot in the Inspector.