Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug How do i fix this?

Discussion in 'Editor & General Support' started by WiTsU_, Aug 29, 2023.

  1. WiTsU_

    WiTsU_

    Joined:
    Aug 29, 2023
    Posts:
    1
    I'm trying to make a FPS game, but i have this weird bug that my muzzle flash animation plays when I start or switch the weapon. I used this tutorial:
    And put muzzle.Play(); in the OnGunShot method. And btw the weapon switching scripts can be found from the same channel.
     
  2. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    2,166
    check for a play on start for particles, or whatever?