title: Unity - custom struct name in inspector based on struct' filed(s)
body: <p>I have a custom serializable struct stored in as a list elements.
  When only one field of a struct is public</p>
  
  <pre><code>[System.Serializable]
  public struct MemoryMoment {
      float Importance;   //Subjective
      Person who;
      Room where;
      string when;
      string what;
      //string why;
      public string Descr;
  
      public MemoryMoment (float importance, Person who, Room where, string when, string what) {
          this.Importance = importance;
          this.who = who;
          this.where = where;
          this.when = when;
          this.what = what;
          //this.why = "UNUSED";
          this.Descr = where.Type.ToString () + " " + when + ", " + who.Name + " " + what;
      }
  }
  </code></pre>
  
  <p>then this whole struct is named in inspector after that element<a href="https://i.stack.imgur.com/1ytI8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1ytI8.png" alt="enter image description here"></a></p>
  
  <p>but when more than one field in struct is public</p>
  
  <pre><code>[System.Serializable]
  public struct MemoryMoment {
      public float Importance;    //Subjective
      Person who;
      Room where;
      string when;
      string what;
      //string why;
      public string Descr;
  
      public MemoryMoment (float importance, Person who, Room where, string when, string what) {
          this.Importance = importance;
          this.who = who;
          this.where = where;
          this.when = when;
          this.what = what;
          //this.why = "UNUSED";
          this.Descr = where.Type.ToString () + " " + when + ", " + who.Name + " " + what;
      }
  }
  </code></pre>
  
  <p>then the struct is named just "Element N"<a href="https://i.stack.imgur.com/DOpnE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DOpnE.png" alt="enter image description here"></a></p>
  
  <p><strong>How can I provide custom inspector name for my struct?</strong></p>
  
  <p>I.e. something like this:</p>
  
  <pre><code>[NameInInspector]
  string n = "(" + Importance.ToString() + ") " + Descr;
  </code></pre>