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.

Which is the "lightest" way to create a shooting effect?

Discussion in 'Visual Effect Graph' started by Chiefmastoras1, Mar 27, 2020.

  1. Chiefmastoras1

    Chiefmastoras1

    Joined:
    Jan 14, 2019
    Posts:
    12
    Hello, this is my first post in forum, I hope this is the right place for this question/discussion.

    Hypothesis:
    Suppose I want to make a very light game that involves some shooting between the player and the enemies. I am already using raycasting to determine whether targets are in range and visible.

    Question:
    What would be the best way to create the effect of bullet, instantiate a bullet prefab or fire a linerenderer? (assuming that I can get the visual effect from both).
     
  2. andybak

    andybak

    Joined:
    Jan 14, 2017
    Posts:
    559
    Chiefmastoras1 likes this.
  3. Chiefmastoras1

    Chiefmastoras1

    Joined:
    Jan 14, 2019
    Posts:
    12
    Thank you for your reply.

    No I am not asking specifically for Visual Effect Graph. I am rather asking if it would be more performant to have 100 linerenderers or instantiate 100 simple moving objects.
     
  4. andybak

    andybak

    Joined:
    Jan 14, 2017
    Posts:
    559
    Yep - I'd repost in a different forum if I were you.