File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -315,13 +315,13 @@ public int var3;
315315public int var4 ;
316316```
317317``` csharp
318- [BeginHorizontal (labelToWidthRatio : 0 . 1 f )]
318+ [BeginHorizontal (LabelWidth = 50 . 0 f )]
319319public int var1 ;
320320public int var2 ;
321321[EndHorizontal ]
322322public int var3 ;
323323
324- [BeginHorizontalGroup (label : " Horizontal Group" )]
324+ [BeginHorizontalGroup (Label = " Horizontal Group" , ControlFieldWidth = true , ElementsInLayout = 2 )]
325325public 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
805805public 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```
You can’t perform that action at this time.
0 commit comments