From 2e08459265467c83a5ba531b8c0b2f7d363d5415 Mon Sep 17 00:00:00 2001 From: Textus Date: Thu, 13 Aug 2020 18:11:30 +0300 Subject: [PATCH] Added not supported types example. Classes that has no empty parameters are not supported and not shown(activator can not create instances of them). --- .../Animals/AnimalStruct.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/Animals/AnimalStruct.cs b/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/Animals/AnimalStruct.cs index 453711e..bfb353d 100644 --- a/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/Animals/AnimalStruct.cs +++ b/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/Animals/AnimalStruct.cs @@ -1,8 +1,9 @@ using System; +using UnityEngine; [Serializable] public struct AnimalStruct : IAnimal { public string name; - public void Feed() => throw new NotImplementedException(); + public void Feed() => Debug.Log("thanks"); }