|
I have an editor script that generates text based on a prefab created with SpriteText. My script successfully builds the instances of the SpriteText, but the objects are not updating for the new text string assigned programmatically.
When this code is executed, I get the new prefab instances, but they all appear with the default prefab text, despite that when I look at the inspector for each item they have been assigned the new text correctly. If I manually change the text, it then will finally update, but I can't seem to trigger an update from my editor script. The calls to UpdateMesh() and SendMessage() are simply my feeble attempts, but no luck. Any ideas to force the script/object to update?
(comments are locked)
|
|
Are you applying [ExecuteInEditMode] on the SpriteText GameObject? I didn't make any changes to the any of the the SpriteText code.
Feb 12 '11 at 04:37 PM
Steven Walker
(comments are locked)
|
