Skip to content

Commit 16be627

Browse files
committed
fix: remove Serializable attribute unity docs url from Foldout Groups code example
Moved it to #### Serializable section where it belongs as it wasn't a valid md nor C# code.
1 parent 8c0cf6a commit 16be627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Levels refer to what some people call maps or what Unity calls Scenes. A level c
5656

5757
<a name="terms-serializable"></a>
5858
#### Serializable
59-
Variables that are Serializable are shown in the Inspector window in Unity. For more information see Unity's documentation on [Serializable](https://docs.unity3d.com/Manual/script-Serialization.html).
59+
Variables that are Serializable are shown in the Inspector window in Unity. For more information see Unity's documentation on [Serializable](https://docs.unity3d.com/ScriptReference/Serializable.html) and [script serialization](https://docs.unity3d.com/Manual/script-Serialization.html).
6060

6161
<a name="terms-cases"></a>
6262
#### Cases
@@ -487,7 +487,7 @@ To create Foldout Groups there are 2 options in Unity.
487487
* The second option is to use the Foldout Group Attribute available with [Odin Inspector](https://odininspector.com/).
488488

489489
```csharp
490-
[[Serializable](https://docs.unity3d.com/ScriptReference/Serializable.html)]
490+
[Serializable]
491491
public struct PlayerStats
492492
{
493493
public int MovementSpeed;

0 commit comments

Comments
 (0)