title: Is there a reason my camera rotation is not correct?
body: <p>I've been working on a Portal-esque game using <strong>Unity 3D 2019.3.0a8</strong>. I have had a good bit of experience using this engine, but I've come across a bug that has baffled me.</p>
  
  <p>In my scene I have two 'Portals', each with a camera connected to a render texture, which is the material of the opposite portal mesh. I have written a short script which moves the portal cameras along with the player's camera, to keep the perspective of the render texture looking realistic, but I realised the cameras were facing the same way as the player camera (on the y axis). In my code (which I've attached) I have tried to flip the y-rotation of the cameras by setting the y-rotation to:</p>
  
  <pre><code>yrotation - 180
  </code></pre>
  
  <p>but it seems it does nothing. The reason this confuses me so much is because I have made so many games relying on rotation, and I've never come across a bug like this. I apologise If I have been slightly unclear, as I'm not too sure how to describe it, so I'll attach the Unity project for you to look at.</p>
  
  <p>Thank you in advance.</p>
  
  <p><em>The project file is at <a href="http://biotechgames.net/dir/portal_help.zip" rel="nofollow noreferrer">http://biotechgames.net/dir/portal_help.zip</a> .</em> </p>