- Home /
,Muzzle flash not working
Whenever I add a muzzle flash to my gun, instead whenever I shoot the muzzle flash turns sideways and it looks like it's shooting sideways. Please help.
$$anonymous$$ake sure you're setting its rotation properly. If it's offset in the prefab, it'll be offset in the real world too.
Answer by scarletsnake · Apr 12, 2012 at 05:41 PM
Make sure that the muzzle flash particle's local velocity is positive at it's Z axis. Then use something like; var muzzleflash : Transform;
//On whatever prompts the firing of the gun, Instantiate(muzzleflash, transform.position, transform.rotation);
Your answer
![](https://koobas.hobune.stream/wayback/20220613031948im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
MuzzleFlash not working 0 Answers
How to create and instantiate a gun muzzle flash 1 Answer
Random.Range Rotate 2 Answers
Muzzle Flash 1 Answer
Muzzle flash acting weird 0 Answers