2D Toolkit Forum

2D Toolkit => FAQs => Topic started by: unikronsoftware on January 26, 2012, 07:07:39 pm

Title: I am setting .text and .color on my tk2dTextMesh, and nothing is changing. What
Post by: unikronsoftware on January 26, 2012, 07:07:39 pm
You need to call Commit on the textmesh for your changes to be committed. The reason for this is you may change text and color and/or size in the same frame, and each of these will invalidate the mesh data, and by calling Commit yourself, you are saving the system from regenerating data multiple times.