|
|
|
|
|
|
var fieldType = serializedObj.targetObject.GetType(); |
|
|
|
var iterator = serializedObj.GetIterator(); |
|
|
|
iterator.NextVisible(true); |
|
|
|
iterator.NextVisible(false); |
|
|
|
do |
|
|
|
if (iterator.NextVisible(false)) |
|
|
|
var propertyField = CreatePropertyField(iterator, fieldType); |
|
|
|
containerElement.Add(propertyField); |
|
|
|
} while (iterator.NextVisible(false)); |
|
|
|
do |
|
|
|
{ |
|
|
|
var propertyField = CreatePropertyField(iterator, fieldType); |
|
|
|
containerElement.Add(propertyField); |
|
|
|
} while (iterator.NextVisible(false)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
public static void CreatePropertyFields(SerializedProperty property, VisualElement containerElement) |
|
|
|
{ |
|
|
|
var fieldType = StaticData.GetManagedReferenceValue(property).GetType(); |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
do |
|
|
|
{ |
|
|
|
if (SerializedProperty.EqualContents(iterator, nextSiblingProperty)) |
|
|
|
|
|
|
} while (iterator.NextVisible(false)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|