Game Development Reference
In-Depth Information
Figure 2-1. Organizing project assets into folders
Note This project will also make use of Standard Asset Packages that ship with Unity. Specifically, Character
Controllers and Standard Assets (Mobile) . These can be imported from the main menu by selecting Assets
Import Package Character Controller and Assets Import Package Standard Assets (Mobile) .
These packages include a First Person Controller asset that we'll use later in the topic.
Step 2: Importing Textures and Meshes
Importing meshes and textures is an interrelated process because meshes typically rely on textures.
Consequently, you can make importing run smoother and easier if you import textures before
meshes. By importing in this order, Unity detects which textures and materials to autoassign onto
your meshes at import time. This means your meshes will automatically show their texture in the
preview pane from the Object Inspector, and even on their thumbnails inside the Project panel.
However, importing in the reverse order causes meshes to appear a textureless gray, in both the
preview pane and Project panel, and usually this won't change automatically, even after you've
imported the textures. So, working on this principle, import the texture first from the topic project
files AssetsToImport/Textures/mainTexture.png into the Textures folder inside the Project panel.
For a single file like this, you can import using either the Assets Import New Asset menu option,
or by directly dragging and dropping the files from Explorer or Finder into the Unity Editor. The latter
method is preferable when importing multiple assets together. See Figure 2-2 to see the imported
texture we'll be using.
 
Search WWH ::




Custom Search