Flafla2 / Vive-Teleporter

A framework for Unity3D that automatically generates teleporter boundaries and facilitates the teleporter mechanic, similarly to Valve's "The Lab"
MIT License
394 stars 94 forks source link

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

Open tot411 opened 7 years ago

tot411 commented 7 years ago

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 namespaceUnityEngine'. 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 namespaceUnityEngine'. Are you missing an assembly reference?

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

bddckr commented 7 years ago

@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.

tot411 commented 7 years ago

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

tot411 commented 7 years ago

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?

Flafla2 commented 7 years ago

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?