Having a MonoBehavior member named camera gives a warning no matter what.
In my MonoBehavior, defining this memberCamera camera;
gives the warningAssets/Scripts/CreditsManager.cs(43,16): warning CS0108: 'CreditsManager.camera' hides inherited member 'UnityEngine.Component.camera'. Use the new keyword if hiding was intended
butnew Camera camera;
gives the warningAssets/Scripts/CreditsManager.cs(43,20): warning CS0109: The member 'CreditsManager.camera' does not hide an inherited member. The new keyword is not required
Which one is it? What am I supposed to believe? Either way, I can't get rid of a warning.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612175652im_/https://answers.unity.com/themes/thub/images/avi.jpg)