Before updating to Windows 10 you may need to return your Pro license. More information here

Inspector issue

I want to find a way to make the unity inspector do something like this: Not quite sure how to pull it off. Any help would be great.

Size 4
   Frosting 0
   Size 3
      Color 0 : int(I want to be able to modify a int value at each color)
      Color 1
      Color 2
   Frosting 1
   Size 2
      Color 0
      Color 1
   Frosting 2
   Size 4
      Color 0
      Color 1
      Color 2
      Color 3
   Frosting 3
   Size 1
      Color 0
more ▼

asked Dec 20, 2010 at 10:45 PM

avatar image

Diet Chugg
600 74 71 84

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

You'd make a couple of custom classes to do it, js should be the same as this, but slightly different syntax:

public class Test : MonoBehaviour //this is an example of how to use the custom class below { public Cake cake; }

[System.Serializable] public class Cake { public Frosting[] frosting; }

[System.Serializable] public class Frosting { public int[] color; }

more ▼

answered Dec 20, 2010 at 11:00 PM

avatar image

Mike 3
34.6k 28 156 319

dude you are brilliant! Thanks figured it out in javascript

Dec 21, 2010 at 12:29 AM Diet Chugg
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Dec 20, 2010 at 10:45 PM

Seen: 1175 times

Last Updated: Dec 20, 2010 at 10:45 PM