From 71af5bf0d9917cebfe53482cf5259446f380d3f9 Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 27 Jul 2016 13:13:22 +0100 Subject: [PATCH] Fixed StackOverflowException in Writer with customized text object #516 --- Assets/Fungus/UI/Scripts/Writer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/UI/Scripts/Writer.cs b/Assets/Fungus/UI/Scripts/Writer.cs index 9932da67..eda0d1a8 100644 --- a/Assets/Fungus/UI/Scripts/Writer.cs +++ b/Assets/Fungus/UI/Scripts/Writer.cs @@ -164,7 +164,7 @@ namespace Fungus // Try to find any component with a text property if (textUI == null && inputField == null && textMesh == null) { - foreach (Component c in GetComponents()) + foreach (Component c in go.GetComponents()) { textProperty = c.GetType().GetProperty("text"); if (textProperty != null)