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