- Home /
Vector3 ambiguous between System.Numerics.Vector3 and UnityEngine.Vector3
Hello, I am following an old tutorial from 2017, and something is not working. I think I am typing eveything correctly... This is the wrong code:
GameObject arrow1 = Instantiate(arrows[0], new Vector3(transform.position.x, height, 0));
I am using VS and I have tried the suggested solution of using UnityEngine.Vector3 which has solved this exact issue in the past, but in this case it's just creating a different issue (Can't convert UnityEngine.Vector3 into UnityEngine.Transform)
Can anyone give me a hand with this?
Thanks in advance!
Answer by SergioCanRam · May 09, 2020 at 11:49 AM
I apologize for wasting your time,people! I forgot to include the Quaternion rotation , my bad! In case anyone is interested, now it's working fine like this:
GameObject arrow1 = Instantiate(arrows[0], new UnityEngine.Vector3(transform.position.x, height, 0), UnityEngine.Quaternion.identity);
Thanks for reading
Your answer
