diff --git a/Assets/Fungus/Dialog/Deprecated/Editor/ChooseEditor.cs b/Assets/Fungus/Dialog/Deprecated/Editor/ChooseEditor.cs index 2624d9f4..4ea41e87 100644 --- a/Assets/Fungus/Dialog/Deprecated/Editor/ChooseEditor.cs +++ b/Assets/Fungus/Dialog/Deprecated/Editor/ChooseEditor.cs @@ -89,6 +89,7 @@ namespace Fungus EditorGUILayout.PropertyField(timeoutDurationProp, new GUIContent("Timeout Duration", "Time limit for player to make a choice. Set to 0 for no limit.")); + /* if (showPortraits && t.portrait != null) { Texture2D characterTexture = t.portrait.texture; @@ -96,12 +97,12 @@ namespace Fungus float aspect = (float)characterTexture.width / (float)characterTexture.height; Rect previewRect = GUILayoutUtility.GetAspectRect(aspect, GUILayout.Width(100), GUILayout.ExpandWidth(true)); - CharacterEditor characterEditor = Editor.CreateEditor(t.character) as CharacterEditor; characterEditor.DrawPreview(previewRect, characterTexture); DestroyImmediate(characterEditor); } - + */ + serializedObject.ApplyModifiedProperties(); } } diff --git a/Assets/Fungus/Dialog/Deprecated/Editor/ChooseOptionEditor.cs b/Assets/Fungus/Dialog/Deprecated/Editor/ChooseOptionEditor.cs index 83e241f4..4a775f08 100644 --- a/Assets/Fungus/Dialog/Deprecated/Editor/ChooseOptionEditor.cs +++ b/Assets/Fungus/Dialog/Deprecated/Editor/ChooseOptionEditor.cs @@ -89,6 +89,7 @@ namespace Fungus EditorGUILayout.PropertyField(timeoutDurationProp, new GUIContent("Timeout Duration", "Time limit for player to make a choice. Set to 0 for no limit.")); + /* if (showPortraits && t.portrait != null) { Texture2D characterTexture = t.portrait.texture; @@ -96,12 +97,12 @@ namespace Fungus float aspect = (float)characterTexture.width / (float)characterTexture.height; Rect previewRect = GUILayoutUtility.GetAspectRect(aspect, GUILayout.Width(100), GUILayout.ExpandWidth(true)); - CharacterEditor characterEditor = Editor.CreateEditor(t.character) as CharacterEditor; characterEditor.DrawPreview(previewRect, characterTexture); DestroyImmediate(characterEditor); } - + */ + serializedObject.ApplyModifiedProperties(); } }