Afternoon all,
I have an array of struct's which creates a tilemap, on click I'm able to populate my own textboxes from the selected struct
so for example
tbData1.Text = tilemap[index].Data1;
populates the textbox with data(string), however I've tried to move to using your property grid, I've added the property grid to my form and in the same event that populates my own textbox I've added
rpbTileProperty.SelectedObject = tilemap[index]
but the property grid remains empty(doesnt detect the public variables or there values), I don't really want to change from using a struct to a class if possilbe. am I doing something wrong or does the property grid not support struct's ?
Thanks
Tom.
I have an array of struct's which creates a tilemap, on click I'm able to populate my own textboxes from the selected struct
so for example
tbData1.Text = tilemap[index].Data1;
populates the textbox with data(string), however I've tried to move to using your property grid, I've added the property grid to my form and in the same event that populates my own textbox I've added
rpbTileProperty.SelectedObject = tilemap[index]
but the property grid remains empty(doesnt detect the public variables or there values), I don't really want to change from using a struct to a class if possilbe. am I doing something wrong or does the property grid not support struct's ?
Thanks
Tom.