cast-unity-plugin
cast-unity-plugin copied to clipboard
After completing step 7 I get "scene is missing a fullscreen camera" in the RD simulator
http://d.pr/i/1fUN7
5.2.3f1
- Complete RD lab up to step 7
- Run in preview window
- 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
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)
This specifically happens after changing RemoteDisplayCamera from "none" to "Mobile Camera" in CastRemoteDisplayManager after adding the "RemoteCameraManager" script to "Mobile Camera"
Also note - end_project states "Remote Display Camera" as none - http://d.pr/i/1l99k
Seems to work fine in end_project.