Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Any way to costumize representation of arrays in the editor? (C#)

Discussion in 'Scripting' started by quizcanners, Feb 7, 2015.

  1. quizcanners

    quizcanners

    Joined:
    Feb 6, 2015
    Posts:
    107
    I want to store playing card's images, so I need cardTexture[4][52]. I made this by creating

    Code (CSharp):
    1. public class FaceColor{
    2. public Texture[] FaceValue;
    3. }
    and

    Code (CSharp):
    1. public FaceColor[] faceColor;
    Problem is it looks messy:
    https://drive.google.com/file/d/0B9XZuo59PPS7ZGt5OThEYVdiTFE/view?usp=sharing

    First: Even if I set length of the array, I still can see size in the editor.
    Code (CSharp):
    1. public FaceColor[] faceColor = new FaceColor[4];
    Can I change it?
    And Second: Would be ideal if instead of "Element N -> Face Value" I could see "Spades" or "Hearts" etc.
    I know I want too much, but is there any ways to costumize array representation I need to be aware of to achive happiness in this life?
     
  2. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
    Jessy and quizcanners like this.
  3. quizcanners

    quizcanners

    Joined:
    Feb 6, 2015
    Posts:
    107