So I have been facing a problem.

CUrrently I am following the survival shooter tutorial but whenever I test the shooting of the weapon unity throws this:

Method call failed (UnityEngine.LineRenderer): SetPosition
Exception has been thrown by the target of an invocation.

and nothing else seems to happen,I am running unity 2021.3.11f1
  • Hm, gave it a quick test in 2021.3 and worked fine in the finished project.
    Make sure your Call Function node is set up correctly.

    Also, check the Line Renderer component you're using, it should have 2 positions added.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on!
  • this is how II currently have it set up by following the tutorial


  • So in unity shenanigan fashion, I Just had to reasign the line renderer once more
Sign In or Register to comment.