Is there anyway to clear the color buffer of camera by scripting?

Hi, all

There are 3 scenes in my game, such as main, loading and game namely. Specifically, the main scene is like a main menu in the game, and you can enter the loading scene by clicking start button. After loading(in loading scene), the game starts in game scene. If you exist the game, you get to the main scene. Every is fine when I follow this loop (main - loading - game - main )for the first time. However, when i do this again and get to the loading scene, a photo comes from the game scene rendered on the screen unexpectedlly… The more strange thing is, the same photo pops up every time after the first loop.

I guess probably I need to clear the camera’s color buffer to solve the problem. I tried to change the camera’s clear flag to color, but it didn’t work.

Do you have any ideas?
Any help is appreciate!
Thanks

the camera of the loading screen probably has no clearFlags set.