Error when changing Text.text

Unity 4.6.0b17 gives me this error:

I think (but i may be wrong) that this simple code updating Text.text string causes it and I have no idea why or how to fix it:

void Update () {
    textComponent_displayResourcesEnergy.text = Registry.mainPlayer.faction.resources[DefinitionsItems.ResourceTypes.energy].ToString("0000");
    textComponent_displayResourcesData.text = Registry.mainPlayer.faction.resources[DefinitionsItems.ResourceTypes.data].ToString("0000");
    textComponent_displayResourcesScience.text = Registry.mainPlayer.faction.resources[DefinitionsItems.ResourceTypes.science].ToString("0000");
}

Communicate seems clear but I don’t know what to do about it. Please give me some directions where to look

I found “UnityEngine.UI.CanvasUpdateRegistry” and it looks like it may have something to do with this. But it’s documentation is rather scarce at the moment

Hi this should not be happening, can you please log a bug.

Ok, report submitted with project files

http://fogbugz.unity3d.com/default.asp?627785_b1dffkmemq49u87a

Do you solve your problem? I have the same one.

In my case - next Unity build (update) fixed it completely. Try reporting it via “Help>Report a bug”, it may be similar internal bug.

I was trying to do it, but there are bugs without end.

Holy crap: my version is 4.6beta18. But every time when I checked unity said: “All is okay. You have newest version”
But now I see what it’s not. Eh. :slight_smile:
will be trying to update.

1 Like