Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Laser Gun Issues

Discussion in 'General Graphics' started by overseer314, Apr 15, 2015.

  1. overseer314

    overseer314

    Joined:
    Apr 15, 2015
    Posts:
    11
    I am trying to make a laser gun, that when shot, starts a particle effect that I already have downloaded. But when I fire the gun, nothing happens. I have checked to make sure that all variables are assigned correctly. It could be that the previous muzzle flash was a Transform, and this is a particle effect, but if so, what would the syntax be to change it? Thanks in advance.
     
  2. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
  3. overseer314

    overseer314

    Joined:
    Apr 15, 2015
    Posts:
    11
    This was a good tutorial, but the main thing i'm having trouble with is creating and destroying the beam when my gun fires. Also, I am using Java script.
     
  4. overseer314

    overseer314

    Joined:
    Apr 15, 2015
    Posts:
    11
    I actually figured it out. First of all, I needed to make it stop playing on awake, then after that, I dragged each lower part of the particle system into the muzzle flash slot instead of the empty they were assigned to. then it worked just fine. still a bit figity though