Cannot link Render Camera in "Screen Space - Camera" canvas if it is set to not destroy on load

I have a ui Canvas with the render mode set to “Screen Space - Camera”. The gameobject is set to not destroy on load by script (DontDestroyOnLoad()).

Is there a reason why in this settup, I cannot assign a camera (that is not set to DontDestroyOnLoad) to the Render Camera (WorldCamera) field?

1 Like

Still an issue in 2019.3.6

It is the same in 2019.4.18. Is it a bug? Is there any workaround?

Same with me. It working at 2019.2 but when I upgrade to 2019.4 LTS then it can’t assign. I don’t know it is a feature or not =))
To work around this.
After the scene is loaded then execute this.

        canvasCamera.transform.SetParent(null);
        SceneManager.MoveGameObjectToScene(canvasCamera.gameObject, SceneManager.GetActiveScene());
        canvasCamera.worldCamera = Camera;
        canvasCamera.transform.SetParent(transform); //move back to don't destroy root or using don'tdestroyonload object

Same problem here. Is that a bug or a feature ?