U
U
Uncle Bogdan2022-01-31 12:55:47
C++ / C#
Uncle Bogdan, 2022-01-31 12:55:47

With the SerializeField attribute, what is the correct way to write the field name?

I always wrote with an underscore, but I noticed that Rider suggests that private fields with the SerializeField attribute should be written simply with a small letter.

Example:

instead of _grid the hint goes what to write grid

How to correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-01-31
@freeExec

Only one rule - There is no rule.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question