浏览代码

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

Changed uint surrogate field USS display attribute to none
/0.8.0.preview.4_staging
Aryan Mann 3 年前
当前提交
2f5d010b
共有 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 =>
{

正在加载...
取消
保存