浏览代码

Fixes from Spaceship

/main
Thomas ICHÉ 4 年前
当前提交
02ac51ce
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 6
      CHANGELOG.md
  2. 2
      Editor/Discover/DiscoverWindow.cs
  3. 2
      Editor/PropertyDrawers/NonNullCheckPropertyDrawer.cs

6
CHANGELOG.md


## 2019.3.7
#### Added
* Fixed Take Screenshot Action : bad filename + tooltips
* Fixed Take Screenshot Action : Bad Filename + Added Tooltips
* Fixed property name in NonNullCheck property drawer
* Fixed Potential null in Discover Window
## 2019.3.6

2
Editor/Discover/DiscoverWindow.cs


EditorSceneManager.sceneOpened -= UpdateDiscoverObjectsOnLoad;
EditorSceneSetup.onSetupLoaded -= UpdateDiscoverObjectsOnLoadSetup;
if (s_Windows.Contains(this))
if (s_Windows != null && s_Windows.Contains(this))
s_Windows.Remove(this);
}

2
Editor/PropertyDrawers/NonNullCheckPropertyDrawer.cs


bool valid = property.objectReferenceValue != null;
var color = GUI.backgroundColor;
GUI.backgroundColor = valid ? color : Color.red;
EditorGUI.ObjectField(position, property, new GUIContent(ObjectNames.NicifyVariableName(property.name)));
EditorGUI.ObjectField(position, property);
GUI.backgroundColor = color;
}
else

正在加载...
取消
保存