浏览代码

fixed randomizer tag UI rendering

/main
Steven Leal 4 年前
当前提交
f665d9d4
共有 1 个文件被更改,包括 9 次插入7 次删除
  1. 16
      com.unity.perception/Editor/Randomization/Utilities/UIElementsEditorUtilities.cs

16
com.unity.perception/Editor/Randomization/Utilities/UIElementsEditorUtilities.cs


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>

正在加载...
取消
保存