Topic: Rotate Camera Script
i used RotateCameraByCompassExample.cs
i add this script to the map GameObject
but it gave me always this error massage :
NullReferenceException: Object reference not set to an instance of an object.
Rotate_Camera.OnCompassChanged (System.Single f) (at Assets/Scripts/Gps_Script/Rotate_Camera.cs:27)
Rotate_Camera.Start () (at Assets/Scripts/Gps_Script/Rotate_Camera.cs:21
Line 21 was:
private void OnCompassChanged(float f)
{
// Rotate the camera.
line 21------> cameraOrbit.rotation.y = f * 360;
should i add any camera on the herarchy "but i cant see any public camera" ?
seem like some thing else !!!!