UnitySerializedReferenceUI/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/Animals/AnimalStruct.cs
Textus 2e08459265 Added not supported types example.
Classes that has no empty parameters are not supported and not shown(activator can not create instances of them).
2020-08-13 18:11:30 +03:00

10 lines
164 B
C#

using System;
using UnityEngine;
[Serializable]
public struct AnimalStruct : IAnimal
{
public string name;
public void Feed() => Debug.Log("thanks");
}