- Home /
Question by
The-Oddler · Oct 23, 2011 at 01:29 PM ·
listinspector
Custom list-item name
Hi,
I have a class 'interaction' and I show a list of it in the inspector, it looks like this:
By default it shows every item as "Element X" (with X being a number). I got it to show it as a proper string, by setting a name. Now I would like it to be "Name (Id)", in the case of my screenshot that would be "Test (0)".
I tried overriding the ToString() method, but this doesn't work.
Any ideas how to do this ?
Thanks ! -Pablo
Comment