Why Rider insist that i make a variable serialized ??
Hi,
I am fairly new to rider and this is a bit annoying tbh, on what basis does the IDE think that a private float must be serialized or public ??

And most importantly how do i disable this without using the #pragma "solution"
Thanks!
Please sign in to leave a comment.
The hammer options are not related to the yellow squiggle. Those are just small/quick refactorings (change visibility, encapuslate, etc.) that happen to apply to the current context. (They are not suggested, just available.)
The yellow squiggle is caused by "Non-accessed field". Since it's a compiler warning and not just a R# inspection, there aren't as flexible inspection severity options for it. If you choose the wrench option "Compiler warning" you'll have the limited options available to correct it (probably just #pragma).
Marking the class as [Serializable] does seem to be another option. You can also mark the field with [UsedImplicitly] (requires JetBrains.Annotations package) or you can just make use of the field somewhere too.
Hi Aladine!
This is a quick-fix suggestion for fields in unity. You can read more about it through our web help. Here are some common tips.
As Dave Cousineau mentioned, the underline is for the unused field.