I have an ActionDialog Class:
[System.Serializable]
public class ActionDialog
{
public enum Speaker
{
Avatar,
Npc
}
public Speaker speaker;
public string content;
}
I created a custom editor which get all the children from the class and draw a HelpBox if the child is an array:
foreach (SerializedProperty property in ExtensionMethods.GetChildren(list))
{
if (property.isArray)
{
Debug.Log(property.name);
GUILayout.BeginVertical(EditorStyles.helpBox);
EditorList.Show(property, options);
GUILayout.EndVertical();
}
else
ShowElements(property, options);
}
and then the content just appears to be a list and is wrapped in a HelpBox???
Does anyone have an idea about how to fix this???