- Home /
Machine gun muzzle_flash will not show in game
I am new to Unity and have been following this tutorial on youtube :
http://www.youtube.com/watch?v=sYQQY76F8ac&feature=related
I got to 2:20 in the video and followed EVERY step from there on how to add a gun and muzzle flash but when I shoot in game the muzzleflash only shows in the scene and not in the game window. I took a screenshot of every child that i added to the parent main camera so maybe someone could see a wrong setting or something inside of the inspector.
Main Camera : http://i859.photobucket.com/albums/ab157/scantace/dasfdfdasf/bandicam2011-10-0918-51-43-984.jpg?t=
Weapons : http://i859.photobucket.com/albums/ab157/scantace/dasfdfdasf/bandicam2011-10-0918-51-48-359.jpg
macine gun (i know its spelt wrong) : http://i859.photobucket.com/albums/ab157/scantace/dasfdfdasf/bandicam2011-10-0918-51-51-531.jpg
machineGun : http://i859.photobucket.com/albums/ab157/scantace/dasfdfdasf/bandicam2011-10-0918-51-55-187.jpg
Muzzle_flash : http://i859.photobucket.com/albums/ab157/scantace/dasfdfdasf/bandicam2011-10-0918-52-00-500.jpg
Also i have not added the sparks animation from the video tutorial yet until i can get this figured out :) I got all of these project folders from the island demo and FPS_Tutorial off the unity website. AND if i cant find a solution for this yet would it be alright to just continue the tutorial and work on this issue later?
Try scaling and moving it around to see if it's being hidden by the gun. It looks kind of small...
Answer by Meltdown · Oct 10, 2011 at 06:10 AM
Make sure your camera's viewing frustum i.e the near clip plane and far clip planes are rendering the muzzle flash. The muzzle flash might be too close to your camera, make the near clip plane smaller.
I changed the near clip pane from 0.3 to everything between 0.15 to 0.01 and still had no success :(
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Unity does'nt work. 4 Answers
Unity won't even start 1 Answer
How do i put lights with muzzleflash? 1 Answer
unity won't start? 3 Answers