Skip to content

Commit 2b09852

Browse files
added tooltip guidelines
1 parent 1ff3b7a commit 2b09852

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CodingGuidelines.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,13 @@ public float MyValue;
473473

474474
```
475475
// Enable field to be configurable in the editor and available externally to other scripts (field is correctly serialized in Unity)
476-
[SerializeField]
477-
private float myValue; // <- Notice we co-located the backing field above our corrisponding property.
476+
[SerializeField]
477+
[ToolTip("If using a tooltip, the text should match the public property's summary documentation, if appropriate.")]
478+
private float myValue; // <- Notice we co-located the backing field above our corresponding property.
479+
480+
/// <summary>
481+
/// If using a tooltip, the text should match the public property's summary documentation, if appropriate.
482+
/// </summary>
478483
public float MyValue
479484
{
480485
get{ return myValue; }

0 commit comments

Comments
 (0)