Skip to content

Commit 522393c

Browse files
committed
Update Example.cs
1 parent e61a077 commit 522393c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/Example/Example.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ public class Example : MonoBehaviour
6464
[SerializeReference]
6565
public Food food3 = new Grape();
6666

67-
[SerializeReference, SubclassSelector(UseToStringAsLabel = true)]
67+
[SerializeReference, SubclassSelector]
6868
public Food foodOne = new Apple();
6969

7070
[SerializeReference, SubclassSelector]
7171
public Food foodTwo = new Peach();
7272

73-
[SerializeReference, SubclassSelector]
73+
// UseToStringAsLabel support on UNITY_2021_3_OR_NEWER
74+
[SerializeReference, SubclassSelector(UseToStringAsLabel = true)]
7475
public Food foodThree = new Grape();
7576

7677
[SerializeReference]

0 commit comments

Comments
 (0)