HnS #21: Commentary

In Unity HnS Tutorial #21 from BurgZergArcade.com, you might run into some errors like this:

NullReferenceException: Object reference not set to an instance of an object
CharcterGenerator.Start () (at Assets\Basic scirpts\PlayerScripts\Charcter Class\CharcterGenerator.cs:35)

Here’s what I did to fix it.

1. Delete your Main camera.

2. In your Standard Assets -> Character Controllers, pick First Person Controller and drag it to the scene.

3. Expand first person controller in your hierarchy so you can see Graphics and Main Camera.

4. Drag the Script “CharacterGenerator” to your First Person Controller’s Main Camera in the Hierarchy tab. It may say something about losing the Prefab connection. Hit ok or yes.

5. Select First Person Controller. In the Inspector window, select Player from the Tag drop-down menu.

Unity 3.4, Tutorial 21, “Character Creation part 1”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: