浏览代码

Merge pull request #307 from Unity-Technologies/uint-field-fix

Changed uint surrogate field USS display attribute to none
/main
GitHub 4 年前
当前提交
a2288c72
共有 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 =>
{

正在加载...
取消
保存