resharper-unity icon indicating copy to clipboard operation
resharper-unity copied to clipboard

Warning never assigned on [SerializeReference] using interface

Open SwingWren opened this issue 1 year ago • 1 comments

When using [SerializeReference] attribute and an Interface you get a never assigned warning image

SwingWren avatar Nov 01 '23 09:11 SwingWren

It also affects collections and with collections rider always suggesting to convert it to readonly (which breaks serialization) https://youtrack.jetbrains.com/issue/RIDER-94348/SerializeReference-and-generic-collection-holding-interface

Currently it's very annoying to use [SerializeReference] with any form of interface which is a very valid use case.

igor-elovikov avatar Nov 16 '23 10:11 igor-elovikov