Browse Source

Fixed StackOverflowException in Writer with customized text object #516

master
Christopher 8 years ago
parent
commit
71af5bf0d9
  1. 2
      Assets/Fungus/UI/Scripts/Writer.cs

2
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<Component>())
foreach (Component c in go.GetComponents<Component>())
{
textProperty = c.GetType().GetProperty("text");
if (textProperty != null)

Loading…
Cancel
Save