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;
315
315
public int var4 ;
316
316
```
317
317
``` csharp
318
- [BeginHorizontal (labelToWidthRatio : 0 . 1 f )]
318
+ [BeginHorizontal (LabelWidth = 50 . 0 f )]
319
319
public int var1 ;
320
320
public int var2 ;
321
321
[EndHorizontal ]
322
322
public int var3 ;
323
323
324
- [BeginHorizontalGroup (label : " Horizontal Group" )]
324
+ [BeginHorizontalGroup (Label = " Horizontal Group" , ControlFieldWidth = true , ElementsInLayout = 2 )]
325
325
public GameObject gameObject ;
326
326
[SpaceArea ]
327
327
[EndHorizontalGroup ]
@@ -800,14 +800,14 @@ Requires at least Unity 2020.1.x because of generic serialization and has to be
800
800
801
801
```csharp
802
802
#if UNITY_2020_1_OR_NEWER
803
- public SerializedDictionary < int , GameObject > dictionary ;
803
+ public SerializedDictionary < int , GameObject > serializedDictionary ;
804
804
805
805
public void Usage ()
806
806
{
807
- dictionary .Add (3 , new GameObject (" TestObject" ));
808
- dictionary .ContainsKey (2 );
807
+ serializedDictionary .Add (3 , new GameObject (" TestObject" ));
808
+ serializedDictionary .ContainsKey (2 );
809
809
// etc. like standard System.Collections.Generic.Dictionary<>
810
- var nativeDictionary = dictionary . BuildNativeDictionary () ;
810
+ System . Collections . Generic . Dictionary < int , GameObject > dictionary = serializedDictionary ;
811
811
}
812
812
#endif
813
813
```
You can’t perform that action at this time.
0 commit comments