We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28031e4 commit 4a3e9d1Copy full SHA for 4a3e9d1
Documentation/Contributing/CodingGuidelines.md
@@ -440,6 +440,22 @@ public float MyValue
440
get => myValue;
441
set => myValue = value;
442
}
443
+
444
+/// <summary>
445
+/// Getter/Setters not wrapping a value directly should contain documentation comments just as public functions would
446
+/// </summary>
447
+public float AbsMyValue
448
+{
449
+ get
450
+ {
451
+ if (MyValue < 0)
452
453
+ return -MyValue;
454
+ }
455
456
+ return MyValue
457
458
+}
459
```
460
461
### Cache values and serialize them in the scene/prefab whenever possible
0 commit comments