my code is the next :
void PoneLineas (Vector3 inicio, Vector3 final) {
var baseObj = new GameObject ();
var NL = baseObj.AddComponent<LineRenderer> ();
NL.SetPosition (0,inicio);
NL.SetPosition (1,final);
NL.SetWidth (0.5f,0.5f);
}
and when run it the lines doesnt appear in the scene but in the inspector i get this:
it already loads the vector3 values that the method receives