diff --git a/unity/Assets/Scripts/AgentManager.cs b/unity/Assets/Scripts/AgentManager.cs index 0465f06bae..fda7f639f2 100644 --- a/unity/Assets/Scripts/AgentManager.cs +++ b/unity/Assets/Scripts/AgentManager.cs @@ -188,10 +188,6 @@ void Start() { // gets initialized var instance = Manager.Instance; - //Why is Rendering manager not in cloudrendering? - - // gameObject.AddComponent(typeof(RenderingManager)); - // Camera camera = this.primaryAgent.gameObject.GetComponentInChildren(); // camera.targetTexture = createRenderTexture(Screen.width, Screen.height); #endif diff --git a/unity/Assets/Scripts/RenderingManager.cs b/unity/Assets/Scripts/RenderingManager.cs index 78c83b8c2e..ca7e80e60a 100644 --- a/unity/Assets/Scripts/RenderingManager.cs +++ b/unity/Assets/Scripts/RenderingManager.cs @@ -197,6 +197,7 @@ void Awake() { this.mainPass }.ToDictionary(x => x.GetName(), x => x); mainPass.OnInitialize(camera); + mainPass.OnCameraChange(camera); // this.enabled = true; }