Skip to content

Commit 77a5642

Browse files
committed
Update: README.md
1 parent 6907cd8 commit 77a5642

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@ public int var3;
315315
public int var4;
316316
```
317317
```csharp
318-
[BeginHorizontal(labelToWidthRatio: 0.1f)]
318+
[BeginHorizontal(LabelWidth = 50.0f)]
319319
public int var1;
320320
public int var2;
321321
[EndHorizontal]
322322
public int var3;
323323

324-
[BeginHorizontalGroup(label: "Horizontal Group")]
324+
[BeginHorizontalGroup(Label = "Horizontal Group", ControlFieldWidth = true, ElementsInLayout = 2)]
325325
public GameObject gameObject;
326326
[SpaceArea]
327327
[EndHorizontalGroup]
@@ -800,14 +800,14 @@ Requires at least Unity 2020.1.x because of generic serialization and has to be
800800
801801
```csharp
802802
#if UNITY_2020_1_OR_NEWER
803-
public SerializedDictionary<int, GameObject> dictionary;
803+
public SerializedDictionary<int, GameObject> serializedDictionary;
804804

805805
public void Usage()
806806
{
807-
dictionary.Add(3, new GameObject("TestObject"));
808-
dictionary.ContainsKey(2);
807+
serializedDictionary.Add(3, new GameObject("TestObject"));
808+
serializedDictionary.ContainsKey(2);
809809
//etc. like standard System.Collections.Generic.Dictionary<>
810-
var nativeDictionary = dictionary.BuildNativeDictionary();
810+
System.Collections.Generic.Dictionary<int, GameObject> dictionary = serializedDictionary;
811811
}
812812
#endif
813813
```

0 commit comments

Comments
 (0)