Trouble editing array of structs in Prefab Editor

Hello. I am having trouble editing an array of structs through the prefab editor. When I try to go to the specific element that I want to edit, it is blank (see picture below). The weird part is I know I’ve done this before, and I am able to edit the elements of other arrays in the same prefab (again see picture). What is happening here?

Can you post the struct?

It looks like the struct might not have any serializable members? Or is itself, not serializable.

I figured it out. It was serialized but I had set the setters to private on my variables without realizing how it would effect the editor.

[System.Serializable]
public struct ItemListID
{
	public int listIndex {get; private set;}
	public int itemIndex {get; private set;}
	public int quantity {get; private set;}
	
	public ItemListID(int listIndex, int itemIndex)
	{
		this.listIndex = listIndex;
		this.itemIndex = itemIndex;
		this.quantity = 1;
	}
	
	public ItemListID(int listIndex, int itemIndex, int quantity)
	{
		this.listIndex = listIndex;
		this.itemIndex = itemIndex;
		this.quantity = quantity;
	}
}
1 Like