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

Readonly modifiers is a good practice to avoid unintended copies

Open AntonC9018 opened this issue 2 years ago • 0 comments

Using readonly modifiers in struct properties and methods can help to avoid unintended copies. Link to docs. This will only work for Unity with C# 8.0 support (Unity 2020+ if I'm not mistaken), so if you plan to support older versions, may not want to merge.

AntonC9018 avatar Jun 16 '22 12:06 AntonC9018