Skip to content

Commit

Permalink
Update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arimger committed Apr 2, 2024
1 parent 72a72a0 commit 6907cd8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Assets/Editor Toolbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ public int var3;
public int var4;
```
```csharp
[BeginHorizontal(labelToWidthRatio: 0.1f)]
[BeginHorizontal(LabelWidth = 50.0f)]
public int var1;
public int var2;
[EndHorizontal]
public int var3;

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

public void Usage()
{
dictionary.Add(3, new GameObject("TestObject"));
dictionary.ContainsKey(2);
serializedDictionary.Add(3, new GameObject("TestObject"));
serializedDictionary.ContainsKey(2);
//etc. like standard System.Collections.Generic.Dictionary<>
var nativeDictionary = dictionary.BuildNativeDictionary();
System.Collections.Generic.Dictionary<int, GameObject> dictionary = serializedDictionary;
}
#endif
```
Expand Down
2 changes: 1 addition & 1 deletion Assets/Examples/Scripts/SampleBehaviour4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private static void TestStaticMethod()

[Label("Horizontal Layout", skinStyle: SkinStyle.Box)]

[BeginHorizontal(ControlFieldWidth = true, ElementsInLayout = 3)]
[BeginHorizontal(LabelWidth = 50.0f)]
public int var29;
public int var30;
[EndHorizontal]
Expand Down
Binary file modified Docs/scrollableitems.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6907cd8

Please sign in to comment.