cast-unity-plugin icon indicating copy to clipboard operation
cast-unity-plugin copied to clipboard

After completing step 7 I get "scene is missing a fullscreen camera" in the RD simulator

Open jrgrafton opened this issue 9 years ago • 4 comments

http://d.pr/i/1fUN7

5.2.3f1

  1. Complete RD lab up to step 7
  2. Run in preview window
  3. Connect to simulated cast

Expect: local device camera rendered correctly Actual: "scene is missing a fullscreen camera" error (http://d.pr/i/1fUN7)

Note: this issue doesn't occur on actual device and is fixed after dying and restarting level in simulator

jrgrafton avatar Dec 29 '15 23:12 jrgrafton

Error that was output in console was:

No texture or camera set. Can't cast to remote display. UnityEngine.Debug:LogError(Object) Google.Cast.RemoteDisplay.Internal.CastRemoteDisplayExtensionManager:UpdateRemoteDisplayTexture() (at Assets/Plugins/GoogleCastRemoteDisplay/Internal/CastRemoteDisplayExtensionManager.cs:229) Google.Cast.RemoteDisplay.CastRemoteDisplayManager:set_RemoteDisplayCamera(Camera) (at Assets/Plugins/GoogleCastRemoteDisplay/CastRemoteDisplayManager.cs:77) RemoteCameraManager:OnRemoteDisplaySessionEnd(CastRemoteDisplayManager) (at Assets/Scripts/Camera/RemoteCameraManager.cs:54) UnityEngine.Events.UnityEvent`1:Invoke(T0) Google.Cast.RemoteDisplay.CastRemoteDisplayManager:fireRemoteDisplaySessionEndEvent() (at Assets/Plugins/GoogleCastRemoteDisplay/CastRemoteDisplayManager.cs:262) Google.Cast.RemoteDisplay.Internal.CastRemoteDisplayExtensionManager:_callback_OnRemoteDisplaySessionEnd(String) (at Assets/Plugins/GoogleCastRemoteDisplay/Internal/CastRemoteDisplayExtensionManager.cs:356) Google.Cast.RemoteDisplay.Internal.CastRemoteDisplayUnityExtension:StopRemoteDisplaySession() (at Assets/Plugins/GoogleCastRemoteDisplay/Internal/UnitySimulator/CastRemoteDisplayUnityExtension.cs:102) Google.Cast.RemoteDisplay.Internal.CastRemoteDisplayExtensionManager:StopRemoteDisplaySession() (at Assets/Plugins/GoogleCastRemoteDisplay/Internal/CastRemoteDisplayExtensionManager.cs:180) Google.Cast.RemoteDisplay.CastRemoteDisplayManager:StopRemoteDisplaySession() (at Assets/Plugins/GoogleCastRemoteDisplay/CastRemoteDisplayManager.cs:228) Google.Cast.RemoteDisplay.UI.CastDefaultUI:OnDisconnectButtonTapped() (at Assets/Plugins/GoogleCastRemoteDisplay/UI/Scripts/CastDefaultUI.cs:317) Google.Cast.RemoteDisplay.UI.CastDisconnectDialog:OnDisconnectButtonTapped() (at Assets/Plugins/GoogleCastRemoteDisplay/UI/Scripts/CastDisconnectDialog.cs:58) UnityEngine.EventSystems.EventSystem:Update()

CastRemoteDisplaymanager appears setup correctly (http://d.pr/i/1h0Lo) Mobile Camera also appears to be correct (http://d.pr/i/1cBDt)

jrgrafton avatar Dec 29 '15 23:12 jrgrafton

This specifically happens after changing RemoteDisplayCamera from "none" to "Mobile Camera" in CastRemoteDisplayManager after adding the "RemoteCameraManager" script to "Mobile Camera"

jrgrafton avatar Dec 29 '15 23:12 jrgrafton

Also note - end_project states "Remote Display Camera" as none - http://d.pr/i/1l99k

jrgrafton avatar Dec 29 '15 23:12 jrgrafton

Seems to work fine in end_project.

LeonNicholls avatar Jan 14 '16 21:01 LeonNicholls