Vive-Teleporter icon indicating copy to clipboard operation
Vive-Teleporter copied to clipboard

`AI' does not exist in the namespace `UnityEngine'

Open tot411 opened this issue 8 years ago • 4 comments

Hi Flafla2, Thanks for sharing your solutions for the teleporter. Unfortunately I'm having some issues with the scripts and I'm not a great coder. When I try to drag the scripts TeleportVive and BorderRenderer into Camera(eye) the two warning messages I get are:

Assets/Vive-Teleporter/Scripts/ViveNavMesh.cs(2,19): error CS0234: The type or namespace name AI' does not exist in the namespace UnityEngine'. Are you missing an assembly reference?

Assets/Vive-Teleporter/Scripts/ViveNavMeshEditor.cs(4,19): error CS0234: The type or namespace name AI' does not exist in the namespace UnityEngine'. Are you missing an assembly reference?

Any idea what I can do about it? Thanks for your help.

tot411 avatar Feb 07 '17 10:02 tot411

@Flafla2 is using Unity 5.5.0(+). That's where Unity changed the namespace for the NavMesh stuff to UnityEngine.AI. So change the using UnityEngine.AI; directives to using UnityEngine; or update to the current Unity version yourself, too.

bddckr avatar Feb 07 '17 14:02 bddckr

Hi bddckr, Thank you for this quick response. I'll download the new version.

tot411 avatar Feb 07 '17 14:02 tot411

Eveything is set now. However, my parabolic pointer keeps going through walls and terrain, even though they have box colliders assigned. Any idea what's going on?

tot411 avatar Feb 08 '17 15:02 tot411

Hey all, I will fix the namespace errors in future releases with a #if UNITY_5_5.

As for your pointer going through walls / terrain, have you followed the "Getting Started" guide in the README completely?

Flafla2 avatar Feb 15 '17 16:02 Flafla2