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

Question How Do You Make a projectile that copies itself in order to shoot

Discussion in 'Scripting' started by sb3file, Oct 23, 2022.

  1. sb3file

    sb3file

    Joined:
    Oct 23, 2022
    Posts:
    2
    I've been trying to make a basic shooting script for a while now, and I haven't been able to make a working script to fire a bullet prefab. I would like to know a way to make a script for this that copies the bullet to shoot so it can use the same bullet prefab.
     
  2. sb3file

    sb3file

    Joined:
    Oct 23, 2022
    Posts:
    2
    So far, all I can do is make the prefab be a child object of the main camera, so that it will shoot the direction your looking.