Any difference between Camera.main and Camera.mainCamera?

I use Camera.mainCamera for consistency, but I have no idea the difference between the two, if there is any. Can anyone shed some light?

2 Answers

2

Camera.mainCamera is not documented, but I remember seeing it in MonoDevelop’s autocomplete. I guess it’s an ancient/obsolete/deprecated field that still exists for backwards compatibility reasons.

ah, that would make sense. I guess I'll start using .main from now on, considering .mainCamera isn't even documented. Thank you.

–

Camera.mainCamera is “read only”! Camera.main is to change options of your main Camera in the scene :slight_smile: