:
For starters, I have successfully created a CustomPropertyDrawer that presents an also functioning custom property type.
:
The problem occurs when I try to create a Foldout that contains everything that that CustomPropertyDrawer does within OnGUI.
:
I followed the information on these links:
:
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
showMatrix = EditorGUILayout.Foldout(showMatrix, "Matrix");
if (showMatrix)
{
// custom property code
}
}
:
Above is exactly what my code looks like (I even tried commenting out the “custom property code” that you see in the code snippet above, to no avail).
:
So, my question is, why is this not working? Is it a bug? Or is this outdated and I need to find a new solution?