From 522393cd91c22d4030eaca5dd89c87f27c9ce2f2 Mon Sep 17 00:00:00 2001 From: Makihiro Date: Sat, 26 Oct 2024 23:44:24 +0900 Subject: [PATCH] Update Example.cs --- Assets/Example/Example.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Example/Example.cs b/Assets/Example/Example.cs index e0eb620..94a7acc 100644 --- a/Assets/Example/Example.cs +++ b/Assets/Example/Example.cs @@ -64,13 +64,14 @@ public class Example : MonoBehaviour [SerializeReference] public Food food3 = new Grape(); - [SerializeReference, SubclassSelector(UseToStringAsLabel = true)] + [SerializeReference, SubclassSelector] public Food foodOne = new Apple(); [SerializeReference, SubclassSelector] public Food foodTwo = new Peach(); - [SerializeReference, SubclassSelector] + // UseToStringAsLabel support on UNITY_2021_3_OR_NEWER + [SerializeReference, SubclassSelector(UseToStringAsLabel = true)] public Food foodThree = new Grape(); [SerializeReference]