x


Trouble seeing prefab 'machineGun'

I have created a level with trees, hills, grass etc. and a first person controller all according to the tutorials here. I have completed the tutorial before this all according to the tutorials. But when i got to the part were you need to insert the prefab 'machineGun' i in counted an issue.

I dragged it into the main window just as described, and positioned it in front of the first person controller, but i couldn't see it. It was right in front of it, yet in the game view it wasn't there! It is just an object with the arrows to move it forwards, right and up. I have looked at the comments for this tutorial, and many seem to have the same problem, but from what i have seen, it is yet to be solved. I downloaded the Assets package containing the prefab 'machineGun' here, specifically the 'FPS_Tutorial.zip'

Thanks!

more ▼

asked Sep 10 '10 at 06:58 AM

Boppy6 gravatar image

Boppy6
3 2 2 3

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

3 answers: sort voted first

It is likely that the Mesh and/or texture is not assigned in the editor. Select the empty gun object in the scene, and then look at the Mesh Filter and Mesh Renderer components in the Inspector pane -- make sure you have a mesh present in the filter, and that the proper material and associated texture are assigned in the Renderer.

more ▼

answered Sep 10 '10 at 02:16 PM

BoredKoi gravatar image

BoredKoi
391 7

thanks! it did have a mesh already, but not a texture. I found one called 'machineGun' and made that the mesh, and after allot of fidling placed it infront of the first person controller, but....... nothing. ):

Sep 11 '10 at 10:33 AM Boppy6
(comments are locked)
10|3000 characters needed characters left

I think, you have a problem with normals in your object. Those are polygon surfaces at model. Change (fix) normals at the editor you used to modeling your gun. Hope it helps ;)

more ▼

answered Sep 10 '10 at 03:28 PM

erghard gravatar image

erghard
16 1 1 2

erm.... huh? the 'machineGun' was just one of the examples... i didn't make it, if thats what you mean.

Sep 11 '10 at 10:34 AM Boppy6
(comments are locked)
10|3000 characters needed characters left

Hmmm,

Have you played with your main camera's near clipping plane? The object might be too close to your camera for it to be rendered.

more ▼

answered Nov 30 '10 at 11:28 AM

Meltdown gravatar image

Meltdown
5.6k 18 25 49

(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:

x82

asked: Sep 10 '10 at 06:58 AM

Seen: 773 times

Last Updated: Sep 10 '10 at 06:58 AM