- Home /
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?
Answer by Wolfram · Jan 23, 2013 at 07:44 PM
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.
Answer by JanVog · Mar 23, 2015 at 03:38 PM
Camera.mainCamera is "read only"! Camera.main is to change options of your main Camera in the scene :)
Your answer
Follow this Question
Related Questions
Camera follow instantiated object and reset 0 Answers
How to make camera position relative to a specific target. 1 Answer
Rotation using click and ctrl script?! 0 Answers
How to get the constant Y rotation of the camera 2 Answers
I got "Your not allowed to call this function..." in this code: 1 Answer