mirror of
https://github.com/focus-creative-games/hybridclr_unity.git
synced 2026-11-20 23:52:41 +08:00
[fix] 解决编辑器打包时出现的 _serializedObject.targetObject 意外销毁的情况 (#17)
This commit is contained in:
@@ -115,6 +115,11 @@ namespace HybridCLR.Editor
|
||||
{
|
||||
using (CreateSettingsWindowGUIScope())
|
||||
{
|
||||
//解决编辑器打包时出现的 _serializedObject.targetObject 意外销毁的情况
|
||||
if (_serializedObject == null||!_serializedObject.targetObject)
|
||||
{
|
||||
InitGUI();
|
||||
}
|
||||
_serializedObject.Update();
|
||||
EditorGUI.BeginChangeCheck();
|
||||
EditorGUILayout.PropertyField(_enable);
|
||||
|
||||
Reference in New Issue
Block a user