From 1a2f56d11fb4d9d7feed02e8ea1275a543d174ee Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 2 Sep 2015 10:40:26 +0100 Subject: [PATCH] Fixed: Say Dialog doesn't move text box back after displaying a character image #141 --- Assets/Fungus/Narrative/Scripts/SayDialog.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/Fungus/Narrative/Scripts/SayDialog.cs b/Assets/Fungus/Narrative/Scripts/SayDialog.cs index b14699d7..3141cf4d 100644 --- a/Assets/Fungus/Narrative/Scripts/SayDialog.cs +++ b/Assets/Fungus/Narrative/Scripts/SayDialog.cs @@ -282,6 +282,13 @@ namespace Fungus else { characterImage.gameObject.SetActive(false); + + if (startStoryTextWidth != 0) + { + storyText.rectTransform.SetInsetAndSizeFromParentEdge(RectTransform.Edge.Left, + startStoryTextInset, + startStoryTextWidth); + } } // Adjust story text box to not overlap image rect