I’m using the standard image effects for bloom in one main camera from scene to scene, but when I go from one scene do another the image effects are lost and I have no clue as to why.
Should I keep the same camera from scene to scene making sure it’s not destroyed or is there anything else I could do?
I have a feeling that only one of your scenes has the image effect on the main camera. The other scenes probably just have regular cameras/cameras without the effect that you’re losing, right? The way to get around this is as you said:
- Create the camera in one scene
- Attach a script with DontDestroyOnLoad(gameObject); somewhere in the start function.
- Delete all other cameras in other scenes (this prevents multiple audio listener errors).
Doing this should give the same exact camera effects throughout your scenes.
Please note, if you want to edit your individual scenes, not having a camera may make it difficult. Consider having a camera in those scenes, and then writing a script to disable them in the start function. The script would look something like this:
C#
//Attach this script to the "extra" cameras in your scenes
//that should be removed once gameplay begins.
void Start(){
if(!Application.isEditor){
Destroy(gameObject);
}
}