Hi,
I am trying to provide movement to my camera in the CardBoard VR.
I was following the tutorial by NurFACEGAMES:
Once I coded everything and tried to run the script, I get this error:
NullReferenceException: Object reference not set to an instance of an object
WalkableSurface.OnPointerDown () (at Assets/WalkableSurface.cs:26)
The live 26 is this:
blocked = NavMesh.Raycast(navmeshAgent.gameObject.transform.position, hit.point, out navmeshHit, NavMesh.AllAreas);
My model is made in SketchUp. The floor of the room has been baked for navigation.
Walkable Surface and the event trigger is attached to this baked floor.
GvrPointerGraphicsRaycaster is used to make it clickable (since I am using Unity 2017 and the latest Google Cardboard, there is no Gaze Input module, I am using GvrEventSystem).
In this case, what changes do I need to make in the tutorial script for this to work?
Thanks