Subversion Repository Public Repository

Nextrek

Diff Revisions 167 vs 168 for /3DSpace/Assets/SpaceUnity/Scripts/SU_SpaceSceneCamera.cs

Diff revisions: vs.
  @@ -78,7 +78,7 @@
78 78 if (_transformCacheParentCamera != null) {
79 79 // Update the rotation of the space camera so the background rotates
80 80 _transformCache.rotation = _transformCacheParentCamera.rotation;
81 - if (inheritFOV) camera.fieldOfView = parentCamera.fieldOfView;
81 + if (inheritFOV) GetComponent<Camera>().fieldOfView = parentCamera.fieldOfView;
82 82
83 83 // Update the relative position of the space camera so you can travel in the space scene if necessary
84 84 // Note! You will fly out of bounds of the space scene if your relative speed is high unless you restrict the movement in your own code.