diff --git a/Assets/Editor Toolbox/README.md b/Assets/Editor Toolbox/README.md index c211dc51..17299ac1 100644 --- a/Assets/Editor Toolbox/README.md +++ b/Assets/Editor Toolbox/README.md @@ -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] @@ -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 dictionary; +public SerializedDictionary 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 dictionary = serializedDictionary; } #endif ``` diff --git a/Assets/Examples/Scripts/SampleBehaviour4.cs b/Assets/Examples/Scripts/SampleBehaviour4.cs index cab2e6ff..fb280a2f 100644 --- a/Assets/Examples/Scripts/SampleBehaviour4.cs +++ b/Assets/Examples/Scripts/SampleBehaviour4.cs @@ -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] diff --git a/Docs/scrollableitems.png b/Docs/scrollableitems.png index 28478952..4552966a 100644 Binary files a/Docs/scrollableitems.png and b/Docs/scrollableitems.png differ