浏览代码

changed uint surrogate field uss display attribute to none

/main
sleal-unity 4 年前
当前提交
e080f1c5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.perception/Editor/Randomization/PropertyDrawers/UIntDrawer.cs

2
com.unity.perception/Editor/Randomization/PropertyDrawers/UIntDrawer.cs


// Create a surrogate integer field to detect and pass along external change events (non UI event) on the underlying serialized property.
var surrogateField = new IntegerField();
field.Add(surrogateField);
surrogateField.style.display = DisplayStyle.Flex;
surrogateField.style.display = DisplayStyle.None;
surrogateField.bindingPath = property.propertyPath;
surrogateField.RegisterValueChangedCallback(evt =>
{

正在加载...
取消
保存