Files
UnitySerializedReferenceUI/Samples~/ExampleOfUsageFromDifferentAssembly/Animals/AnimalStruct.cs
T

10 lines
164 B
C#

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