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)