Hey! So, I’m working on a 2D game, and I’d need to change the background color of the main camera, but I just can’t figure out the syntax. I’m making this game in C# and I’d need to have it change from an OnTriggerEnter2D function.
PS. Keep in mind, this is a repost, because my other one got closed. There is a background color attribute in the Unity editor, which you can change in a color selection field, but how can I change it in a script in C#? Here is a picture for clarification: