In the Inspector in Unity, basic data types and arrays can be displayed directly, but the created structure cannot be displayed directly.
Adding a property to a struct System.Serializable
makes it visible in the Inspector.
[Serializable]
struct CustomData
{
public int SomeInteger;
public string SomeString;
}