x


Scripts in project not going to hierarchy. HELP PLS

On the Lerpz tutorial i was trying to get the camera to go to third person following the character. So i tried to add the SpringFollowCamera to my NearCamera like it said in the tutorial pdf and for some reason it's not going to the hierarchy. I've tested around and it seems like the only thing that don't go to the hierarchy are the scripts for the cameras.

more ▼

asked May 03 '11 at 11:18 PM

Leonardo Leddy gravatar image

Leonardo Leddy
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

2 answers: sort oldest

Are you trying to add the script to the camera? When you add it you need to drag it into the small space just below the last component. If you try to drag it "on to" an area in the inspector that is taken up by an existing script it won't let you drop it.

more ▼

answered May 03 '11 at 11:32 PM

GesterX gravatar image

GesterX
2.1k 13 16 37

I'm trying yo drag it right in between the existing Nearcamera and Farcamera.

May 03 '11 at 11:42 PM Leonardo Leddy

Correction: yo = to*

May 03 '11 at 11:42 PM Leonardo Leddy

Don't drag it in between the existing scripts - add it to the bottom of the inspector below everything else.

May 03 '11 at 11:44 PM GesterX

On second thoughts is the SpringFollowCamera an actual object or a script? I know this isn't an answer to your question but the Lerpz tutorial isn't the best thing to do for an absolute starter. I would urge you to go to http://www.unity3dstudent.com/ and do all the essentail/beginner modules there. They're much shorter and teach you small chunks at a time. I found the Lerpz example to skip over the explanations

May 03 '11 at 11:53 PM GesterX

it still doesn't work. it says a variable target is not assigned.

May 03 '11 at 11:55 PM Leonardo Leddy
(comments are locked)
10|3000 characters needed characters left

did you add lerpz as the target of the script by dragging the player object into the script?

more ▼

answered May 04 '11 at 12:29 PM

Azerial gravatar image

Azerial
1 1 1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3003
x90
x7

asked: May 03 '11 at 11:18 PM

Seen: 766 times

Last Updated: May 03 '11 at 11:18 PM