i made an editor-script that would alter the tk2dtexhmesh's text to "some-text" during edit mode...of which the changes shows in the editor window.
however, the changes are reverted once i click play... and the old editor values are also reverted once i un-play the game.
e.g.,
original text = abc
editor script alters the text to -> efg
upon scene play -> text = abc (old value)
upon scene stop-play -> text = abc (old value)
run editor script again -> efg ....
manual editing of tk2dtexhmesh to xyz
editor script alters the text to -> efg
upon scene play -> text = xyz (new manual input value)
upon scene stop-play -> xyz (new manual input value)
run editor script again -> efg ....
but the values of the editor script does not persist even though it was changed... is there like some text value saving / cache somewhere ? of which tk2dtextmesh.text = 'value' does not reflect the cached version?
-------
the reason i have this editor text change is that i am pulling the text from somewhere else during edit mode and i want them to sync rather than me going to the textmesh and updating the values one by one...