You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IDE0016 is reported for types inheriting from the UnityEngine.Object class
Version of analyzers assembly: 1.12.0
To Reproduce
Insert the following code snippet
publicclassBillboard:MonoBehaviour{[SerializeField]privateCamera_camera=default!;privatevoidUpdate()=> transform.rotation = _camera.transform.rotation;publicvoidSetCamera(CameranextCamera){// IDE0016 is reported here for the throwif(nextCamera==null)thrownew ArgumentNullException(nameof(nextCamera));_camera=nextCamera;}}
Expected behavior
IDE0016 is not reported
Screenshots
Additional context
This might be applicable for other analyzers where null checking can be simplified
The text was updated successfully, but these errors were encountered:
Bug description
IDE0016 is reported for types inheriting from the
UnityEngine.Object
classTo Reproduce
Insert the following code snippet
Expected behavior
IDE0016 is not reported
Screenshots
Additional context
This might be applicable for other analyzers where null checking can be simplified
The text was updated successfully, but these errors were encountered: