Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Feature Request Tuple in inspector

Discussion in 'Editor & General Support' started by laurentlavigne, Jan 24, 2021.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    4,595
    to bring the inspector up to speed with what c# can do these days which is
    Code (CSharp):
    1. public List<Tuple<Research_SO, Button, Image>> things;
    instead of
    Code (CSharp):
    1. [Serializable]
    2. public class ThisTupe
    3. {
    4. public Research_SO research;
    5. public Button button;
    6. public Image image;
    7. }
    8. public List<ThisTuple> things;
     
unityunity