C# code style settings for serialized Field in Unity

Hi, 

I want all my private class member to be named m_UpperCamelCase,

you can find my settings in the attached image, it works fine for non serialized field, but as soon as i add [SerializeField], Rider suggests that i rename the variable using lowerCamelCase, can i fix this ?

I am using Rider 2021.3.1

 

 

1
2 comments

Hi Aladine! To set the naming rule for serialized fields, go to `File | Settings | Languages & Frameworks | Unity Engine => Serialized fields naming rules`. Here you can set prefix/suffix for such field. 

I hope this helps! 

3

Please sign in to leave a comment.