public class FoldoutSample : MonoBehaviour
{
public int onexx;
[MarkedUpField(indentChildren: false, showControl: false)]
public List<Level1_Array> LangLangM;
[Foldout("Foldout In A Box")]
public int one;
public int two;
public int three;
}
[MarkedUpType]
[System.Serializable]
public class Level1_Array
{
public string test;
public string testxx;
[ToggleGroup("Toggle Group xx xxx x")]
public bool boolean;
public int level1propertyInt;
}
Also if i use on the classes
[MarkedUpType]
It wont draw arrays/lists of seralizable marked classes and will throw an:
[Exception] NullReferenceException: : SerializedProperty is null
EditorGUI.BeginPropertyInternal() at <25578071f6e44201aac745680e5c8dfc>:0
EditorGUI.DefaultPropertyField() at <25578071f6e44201aac745680e5c8dfc>:0
ReorderableListWrapper.Draw() at <25578071f6e44201aac745680e5c8dfc>:0
PropertyHandler.OnGUI() at <25578071f6e44201aac745680e5c8dfc>:0
PropertyHandler.OnGUI() at <25578071f6e44201aac745680e5c8dfc>:0
PropertyHandler.OnGUILayout() at <25578071f6e44201aac745680e5c8dfc>:0
EditorGUILayout.PropertyField() at <25578071f6e44201aac745680e5c8dfc>:0
EditorGUILayout.PropertyField() at <25578071f6e44201aac745680e5c8dfc>:0
MarkedUpEditor.DrawProperty() at /MarkupAttributes/Core/Editor/MarkedUpEditor.cs:120
MarkedUpEditor.DrawMarkedUpInspector() at /MarkupAttributes/Core/Editor/MarkedUpEditor.cs:86
MarkedUpEditor.OnInspectorGUI() at /MarkupAttributes/Core/Editor/MarkedUpEditor.cs:39
SmikeEditor.OnInspectorGUI() at /Standard /Mono/DynamicCode.cs:219
InspectorElement+<>c__DisplayClass59_0.b__0() at :0
Hi i have something like this:
[Exception] NullReferenceException: : SerializedProperty is null EditorGUI.BeginPropertyInternal() at <25578071f6e44201aac745680e5c8dfc>:0
EditorGUI.DefaultPropertyField() at <25578071f6e44201aac745680e5c8dfc>:0
ReorderableListWrapper.Draw() at <25578071f6e44201aac745680e5c8dfc>:0
PropertyHandler.OnGUI() at <25578071f6e44201aac745680e5c8dfc>:0
PropertyHandler.OnGUI() at <25578071f6e44201aac745680e5c8dfc>:0
PropertyHandler.OnGUILayout() at <25578071f6e44201aac745680e5c8dfc>:0
EditorGUILayout.PropertyField() at <25578071f6e44201aac745680e5c8dfc>:0
EditorGUILayout.PropertyField() at <25578071f6e44201aac745680e5c8dfc>:0
MarkedUpEditor.DrawProperty() at /MarkupAttributes/Core/Editor/MarkedUpEditor.cs:120
MarkedUpEditor.DrawMarkedUpInspector() at /MarkupAttributes/Core/Editor/MarkedUpEditor.cs:86
MarkedUpEditor.OnInspectorGUI() at /MarkupAttributes/Core/Editor/MarkedUpEditor.cs:39
SmikeEditor.OnInspectorGUI() at /Standard /Mono/DynamicCode.cs:219
InspectorElement+<>c__DisplayClass59_0.b__0() at :0